diff --git a/DocService/sources/DocsCoServer.js b/DocService/sources/DocsCoServer.js index 4fd1a395..4ac7af7f 100644 --- a/DocService/sources/DocsCoServer.js +++ b/DocService/sources/DocsCoServer.js @@ -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);