check every 10 seconds to only send one ping
This commit is contained in:
@@ -316,7 +316,7 @@ class WTVIRC {
|
|||||||
this.debugLog('info', `Sent PING to ${socket.remoteAddress} due to inactivity`);
|
this.debugLog('info', `Sent PING to ${socket.remoteAddress} due to inactivity`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}, 5000); // check every 5 seconds
|
}, 10000); // check every 5 seconds
|
||||||
|
|
||||||
this.clients.push(socket);
|
this.clients.push(socket);
|
||||||
this.clientpeak = Math.max(this.clientpeak, this.clients.length);
|
this.clientpeak = Math.max(this.clientpeak, this.clients.length);
|
||||||
|
|||||||
Reference in New Issue
Block a user