fix bug on idle connection closing.

Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
Yonle
2024-03-18 20:53:58 +07:00
parent d6cfdcb6ad
commit 99dc6bc6a2

View File

@@ -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();
}