mirror of
https://github.com/Yonle/bostr.git
synced 2025-11-18 09:57:20 +01:00
@@ -221,7 +221,7 @@ function onClientDisconnect() {
|
|||||||
const orphanSessNum = howManyOrphanSess();
|
const orphanSessNum = howManyOrphanSess();
|
||||||
const max = max_orphan_sess || 0;
|
const max = max_orphan_sess || 0;
|
||||||
if (orphanSessNum > max) {
|
if (orphanSessNum > max) {
|
||||||
console.log(process.pid, `There are ${orphanSessNum} of orphan session. I will clear ${orphanSessNum - max} of orphan sessions.`);
|
console.log(process.pid, `There are ${orphanSessNum} orphan sessions. I will clear ${orphanSessNum - max} of orphan sessions.`);
|
||||||
clearOrphanSess(orphanSessNum - max);
|
clearOrphanSess(orphanSessNum - max);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user