mirror of
https://github.com/Yonle/bostr.git
synced 2025-09-25 20:36:24 +02:00
bouncer: logger: no need to tell clearing orphan sessions when max_orphan_sess is 0.
Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
@@ -244,7 +244,7 @@ function onClientDisconnect() {
|
||||
const orphanSessNum = howManyOrphanSess();
|
||||
const max = max_orphan_sess || 0;
|
||||
if (orphanSessNum > max) {
|
||||
console.log(process.pid, `There are ${orphanSessNum} orphan sessions. I will clear ${orphanSessNum - max} orphan sessions.`);
|
||||
if (max) console.log(process.pid, `There are ${orphanSessNum} orphan sessions. I will clear ${orphanSessNum - max} orphan sessions.`);
|
||||
clearOrphanSess(orphanSessNum - max);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user