dont send to timed out socket
This commit is contained in:
@@ -279,7 +279,7 @@ class WTVIRC {
|
|||||||
|
|
||||||
socket.on('timeout', () => {
|
socket.on('timeout', () => {
|
||||||
this.debugLog('warn', `Socket timeout for ${socket.remoteAddress}`);
|
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);
|
this.terminateSession(socket, true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user