forked from hippoz/brainlet
forgot to check for inactivity before disconnecting
This commit is contained in:
parent
efffd3bc66
commit
dcdcc64553
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ GatewayServer.prototype.eventSetup = function() {
|
||||||
socket.isConnected = false;
|
socket.isConnected = false;
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
if (socket.isConnected) return;
|
||||||
console.log('[*] [gateway] User still not connected after timeout, removing...');
|
console.log('[*] [gateway] User still not connected after timeout, removing...');
|
||||||
socket.disconnect();
|
socket.disconnect();
|
||||||
socket.disconnect(true);
|
socket.disconnect(true);
|
||||||
|
|
Loading…
Reference in a new issue