mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
[bug] Change disconnection code on server shutdown; For shared cluster
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user