fix(core): update

This commit is contained in:
2020-09-30 00:20:53 +00:00
parent 38f017934c
commit ca7470eedf
2 changed files with 4 additions and 3 deletions
+4 -2
View File
@@ -60,8 +60,10 @@ export class Smartsocket {
public async stop() {
await plugins.smartdelay.delayFor(1000);
this.socketConnections.forEach((socketObjectArg: SocketConnection) => {
logger.log('info', `disconnect socket with >>alias ${socketObjectArg.alias}`);
socketObjectArg.socket.disconnect();
if (socketObjectArg) {
logger.log('info', `disconnect socket with >>alias ${socketObjectArg.alias}`);
socketObjectArg.socket.disconnect();
}
});
this.socketConnections.wipe();
this.io.close();