From: michael Date: Sun, 18 Jan 2015 13:41:05 +0000 (+0000) Subject: - irc.c:irc_cycle(): attempt to reconnect to the server in case of POLLERR, or POLLHUP X-Git-Tag: 1.0.3~10 X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=efe2d9fd8224bdbef18e65280c2021625d62043a;p=hopm.git - irc.c:irc_cycle(): attempt to reconnect to the server in case of POLLERR, or POLLHUP git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.0.x@5389 82007160-df01-0410-b94d-b575c5fd34c7 --- diff --git a/src/irc.c b/src/irc.c index 75ab94b..795fcc7 100644 --- a/src/irc.c +++ b/src/irc.c @@ -150,6 +150,8 @@ irc_cycle(void) /* Check if IRC data is available. */ if (pfd.revents & POLLIN) irc_read(); + else if (pfd.revents & (POLLERR | POLLHUP)) + irc_reconnect(); break; }