diff --git a/bouncer.js b/bouncer.js index 08d9e8f..3e2b3b0 100644 --- a/bouncer.js +++ b/bouncer.js @@ -184,6 +184,7 @@ module.exports = (ws, req, onClose) => { console.log(process.pid, "---", `${ws.ip} disconnected`); + if (!sessStarted) return; for (const sock of userRelays.get(ws.id)) { sock.terminate(); }