Don't ping websocket after it's being terminated

This commit is contained in:
Chrystian Huot 2020-07-13 08:23:11 -04:00
parent d19bbd6ba9
commit 045bafdf00

View file

@ -35,11 +35,12 @@ class WebSocket {
ws.terminate(); ws.terminate();
this.logClientsCount(); this.logClientsCount();
} else {
ws.isAlive = false;
ws.ping();
} }
ws.isAlive = false;
ws.ping();
}); });
}, 60 * 1000); }, 60 * 1000);