forked from ppfun/pixelplanet
increase threshold for kicking out ws again
This commit is contained in:
parent
09ba826b33
commit
e5f604c327
|
@ -337,7 +337,7 @@ class SocketServer {
|
||||||
}
|
}
|
||||||
|
|
||||||
checkHealth() {
|
checkHealth() {
|
||||||
const ts = Date.now() - 60 * 1000;
|
const ts = Date.now() - 120 * 1000;
|
||||||
const promises = [];
|
const promises = [];
|
||||||
this.wss.clients.forEach((ws) => {
|
this.wss.clients.forEach((ws) => {
|
||||||
promises.push(new Promise((resolve) => {
|
promises.push(new Promise((resolve) => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user