problem with connections are closed before full opening

This commit is contained in:
konovalovsergey
2017-01-10 16:43:50 +03:00
parent 77514741fd
commit 603ac92013

View File

@ -1694,6 +1694,10 @@ exports.install = function(server, callbackFunction) {
var res = true;
var docId = conn.docId;
var tmpUser = conn.user;
if (constants.CONN_CLOSED === conn.readyState) {
//closing could happen during async action
return false;
}
connections.push(conn);
yield* updatePresence(docId, tmpUser.id, getConnectionInfo(conn));
var firstParticipantNoView, countNoView = 0;