check every 10 seconds to only send one ping

This commit is contained in:
zefie
2025-06-22 15:45:16 -04:00
parent 4f289ea161
commit 6e16d64a90

View File

@@ -316,7 +316,7 @@ class WTVIRC {
this.debugLog('info', `Sent PING to ${socket.remoteAddress} due to inactivity`);
return;
}
}, 5000); // check every 5 seconds
}, 10000); // check every 5 seconds
this.clients.push(socket);
this.clientpeak = Math.max(this.clientpeak, this.clients.length);