mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-28 13:36:16 +02:00
Allow idle monitor to be disabled
This commit is contained in:
parent
1ec721212d
commit
289b32c169
2 changed files with 2 additions and 1 deletions
|
@ -27,6 +27,7 @@ This document attempts to track **major** changes and additions in ENiGMA½. For
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
* `idleLogoutSeconds` and `preAuthIdleLogoutSeconds` can now be set to `0` to fully disable the idle monitor.
|
||||||
|
|
||||||
## 0.0.9-alpha
|
## 0.0.9-alpha
|
||||||
* Development is now against Node.js 10.x LTS. While other Node.js series may continue to work, you're own your own and YMMV!
|
* Development is now against Node.js 10.x LTS. While other Node.js series may continue to work, you're own your own and YMMV!
|
||||||
|
|
|
@ -476,7 +476,7 @@ Client.prototype.startIdleMonitor = function() {
|
||||||
// use override value if set
|
// use override value if set
|
||||||
idleLogoutSeconds = this.idleLogoutSecondsOverride || idleLogoutSeconds;
|
idleLogoutSeconds = this.idleLogoutSecondsOverride || idleLogoutSeconds;
|
||||||
|
|
||||||
if(nowMs - this.lastKeyPressMs >= (idleLogoutSeconds * 1000)) {
|
if(idleLogoutSeconds > 0 && (nowMs - this.lastKeyPressMs >= (idleLogoutSeconds * 1000))) {
|
||||||
this.emit('idle timeout');
|
this.emit('idle timeout');
|
||||||
}
|
}
|
||||||
}, 1000 * 60);
|
}, 1000 * 60);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue