mirror of
https://github.com/Yonle/bostr.git
synced 2025-09-28 22:02:29 +02:00
fix bug on idle connection closing.
Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user