dont send to timed out socket

This commit is contained in:
zefie
2025-06-22 15:11:10 -04:00
parent d621b52eca
commit d27a5937ee

View File

@@ -279,7 +279,7 @@ class WTVIRC {
socket.on('timeout', () => {
this.debugLog('warn', `Socket timeout for ${socket.remoteAddress}`);
this.broadcastUser(socket.nickname, `:${socket.nickname}!${socket.username}@${socket.host} QUIT :Ping Timeout (${this.socket_timeout / 1000} seconds)\r\n`);
this.broadcastUser(socket.nickname, `:${socket.nickname}!${socket.username}@${socket.host} QUIT :Ping Timeout (${this.socket_timeout / 1000} seconds)\r\n`, socket);
this.terminateSession(socket, true);
});