diff --git a/DocService/sources/DocsCoServer.js b/DocService/sources/DocsCoServer.js index f13178cc..f44ed502 100644 --- a/DocService/sources/DocsCoServer.js +++ b/DocService/sources/DocsCoServer.js @@ -2841,6 +2841,11 @@ exports.install = function(server, callbackFunction) { let puckerIndex = yield* getChangesIndex(ctx, docId); + if (constants.CONN_CLOSED === conn.conn.readyState) { + //closing could happen during async action + return; + } + let deleteIndex = -1; if (data.startSaveChanges && null != data.deleteIndex) { deleteIndex = data.deleteIndex; @@ -2855,6 +2860,11 @@ exports.install = function(server, callbackFunction) { } } + if (constants.CONN_CLOSED === conn.conn.readyState) { + //closing could happen during async action + return; + } + // Стартовый индекс изменения при добавлении const startIndex = puckerIndex;