# HG changeset patch # User Luke Schierer # Date 1060027824 0 # Node ID 1cdc8a11eea5bd0e7ae1dce520032ff1599e2d3b # Parent 41e6d15f46878d20402f6a799396c2fbcfcf5912 [gaim-migrate @ 6874] this should fix up a lockup on disconnect committer: Tailor Script diff -r 41e6d15f4687 -r 1cdc8a11eea5 src/protocols/irc/irc.c --- a/src/protocols/irc/irc.c Mon Aug 04 19:39:33 2003 +0000 +++ b/src/protocols/irc/irc.c Mon Aug 04 20:10:24 2003 +0000 @@ -310,7 +310,11 @@ if ((len = read(irc->fd, irc->inbuf + irc->inbufused, IRC_INITIAL_BUFSIZE - 1)) < 0) { gaim_connection_error(gc, "Read error"); return; + } else if (len == 0) { + /* Remote closed the connection, probably */ + return; } + irc->inbufused += len; irc->inbuf[irc->inbufused] = '\0';