From: michael Date: Sun, 18 Jan 2015 13:40:44 +0000 (+0000) Subject: - irc.c:irc_cycle(): attempt to reconnect to the server in case of POLLERR, or POLLHUP X-Git-Tag: 1.1.0beta1~164 X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=21cd577f04e812c1d6f1d1cce7b9d617d8da271b;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/trunk@5388 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; }