mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
problem with connections are closed before full opening
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user