mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
[bug] Set noDelay=true if the client intentionally closes connection or server shuts down; For bug 75503
This commit is contained in:
@ -1984,7 +1984,9 @@ exports.install = function(server, callbackFunction) {
|
||||
if (needSaveChanges && !conn.encrypted) {
|
||||
// Send changes to save server
|
||||
let user_lcid = utilsDocService.localeToLCID(conn.lang);
|
||||
yield createSaveTimer(ctx, docId, tmpUser.idOriginal, userIndex, user_lcid, undefined, getIsShutdown());
|
||||
//noDelay=true if the client intentionally closes connection or server shuts down
|
||||
const noDelay = !reason || getIsShutdown();
|
||||
yield createSaveTimer(ctx, docId, tmpUser.idOriginal, userIndex, user_lcid, undefined, noDelay);
|
||||
} else if (needSendStatus) {
|
||||
yield* cleanDocumentOnExitNoChanges(ctx, docId, tmpUser.idOriginal, userIndex);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user