mirror of
https://github.com/Yonle/bostr.git
synced 2025-09-29 14:22:38 +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`);
|
console.log(process.pid, "---", `${ws.ip} disconnected`);
|
||||||
|
|
||||||
|
if (!sessStarted) return;
|
||||||
for (const sock of userRelays.get(ws.id)) {
|
for (const sock of userRelays.get(ws.id)) {
|
||||||
sock.terminate();
|
sock.terminate();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user