b2: fix crash when client disconnected

Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
Yonle
2023-11-06 06:41:27 +07:00
parent 0bb168e777
commit 5df8ddda91

View File

@@ -88,7 +88,7 @@ function terminate_sess(id) {
}
for (sub of pendingEOSE) {
if (!sub.startsWith(id)) continue;
if (!sub[0].startsWith(id)) continue;
pendingEOSE.delete(id);
}
}