Fixed user might not disconnect from server properly, handle more uncaught exceptions

This commit is contained in:
Wu Cheng-Han 2015-09-24 11:40:08 +08:00
parent 43a175e710
commit f1a0dff9e6
2 changed files with 16 additions and 6 deletions

View file

@ -51,7 +51,7 @@ EditorSocketIOServer.prototype.addClient = function (socket) {
try {
self.onOperation(socket, revision, operation, selection);
} catch (err) {
socket.disconnect();
socket.disconnect(true);
}
});
});