mirror of
https://github.com/Yonle/bostr.git
synced 2025-03-26 09:31:43 +01:00
properly clear orphaned session.
Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
parent
53cf7a1562
commit
29cb8ab5ed
@ -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++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user