diff --git a/exec/load/irclib.js b/exec/load/irclib.js index 8f8bbc8ccd7d4be1baadcf24ec625b3741652907..53d466efacfe63ac5605765b37b5303c4e78f61e 100644 --- a/exec/load/irclib.js +++ b/exec/load/irclib.js @@ -141,7 +141,7 @@ function IRC_quit(server,reason) { reason = IRCLIB_VERSION; server.send("QUIT :" + reason + "\r\n"); - server.close(); + server.is_writeable=false; /* wait up to 5 seconds for server to disconnect */ var start=time();