mirror of
https://github.com/Yonle/bostr.git
synced 2025-09-29 22:32:38 +02:00
properly clear orphaned session.
Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
@@ -247,7 +247,7 @@ function howManyOrphanSess() {
|
||||
function clearOrphanSess(l) {
|
||||
let cn = 0;
|
||||
for (sess of csess) {
|
||||
if (cn > l) break;
|
||||
if (cn >= l) break;
|
||||
if (sess[1] !== null) continue;
|
||||
terminate_sess(sess[0]);
|
||||
cn++;
|
||||
|
Reference in New Issue
Block a user