forgot to check for inactivity before disconnecting

This commit is contained in:
hippoz 2020-11-16 21:35:38 +02:00
parent efffd3bc66
commit dcdcc64553

View file

@ -26,6 +26,7 @@ GatewayServer.prototype.eventSetup = function() {
socket.isConnected = false;
setTimeout(() => {
if (socket.isConnected) return;
console.log('[*] [gateway] User still not connected after timeout, removing...');
socket.disconnect();
socket.disconnect(true);