[bug] Fix bug 60982

This commit is contained in:
Sergey Konovalov
2023-02-02 23:40:15 +03:00
parent 2b4d7cbff1
commit a49c990ca2

View File

@ -3357,7 +3357,8 @@ exports.install = function(server, callbackFunction) {
var connectionsTmp = connections.slice();
//destroy all open connections
for (i = 0; i < connectionsTmp.length; ++i) {
connectionsTmp[i].close(constants.SHUTDOWN_CODE, constants.SHUTDOWN_REASON);
sendDataDisconnectReason(ctx, connectionsTmp[i], constants.SHUTDOWN_CODE, constants.SHUTDOWN_REASON);
connectionsTmp[i].disconnect(true);
}
}
ctx.logger.warn('end shutdown');