diff --git a/api/v1/gateway/index.js b/api/v1/gateway/index.js index f7263cf..f043a7c 100644 --- a/api/v1/gateway/index.js +++ b/api/v1/gateway/index.js @@ -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);