Skip to content
Snippets Groups Projects
Commit 3c9b9097 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Log the socket descriptor that's being closed *before* calling Socket.close()

Socket.close() always sets the descriptor to -1 which is/would be logged here
as an unsigned int (%u) or 4294967295.

If this continues to log 4294967295, then a check of descriptor >= 0 would be
prudent.

And as Cyan said:
<Cyan> the IP would be more useful though
parent dc2b0a3b
No related branches found
No related tags found
No related merge requests found
......@@ -315,11 +315,11 @@ function Unregistered_Quit(msg) {
else
log(LOG_INFO, format('[UNREG] QUIT ("%s")', msg));
this.socket.clearOn("read", this.socket.callback_id);
this.socket.close();
log(LOG_NOTICE,format(
"%04u Connection closed.",
this.socket.descriptor
));
this.socket.close();
if ( typeof this.cline === 'object'
&& YLines[this.ircclass].connfreq > 0
&& this.cline.port > 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment