Skip to content

Commit

Permalink
[bug] Change disconnection code on server shutdown; For shared cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
konovalovsergey committed Oct 23, 2024
1 parent 83df05c commit 8687e34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DocService/sources/DocsCoServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1634,7 +1634,8 @@ exports.install = function(server, callbackFunction) {
return;
}
if (getIsShutdown()) {
sendFileError(ctx, conn, 'Server shutdow');
sendDataDisconnectReason(ctx, conn, constants.SHUTDOWN_CODE, constants.SHUTDOWN_REASON);
conn.disconnect(true);
return;
}
conn.baseUrl = utils.getBaseUrlByConnection(ctx, conn);
Expand Down

0 comments on commit 8687e34

Please sign in to comment.