- irc.c:irc_cycle(): attempt to reconnect to the server in case of POLLERR, or POLLHUP
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Sun, 18 Jan 2015 13:40:44 +0000 (13:40 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Sun, 18 Jan 2015 13:40:44 +0000 (13:40 +0000)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@5388 82007160-df01-0410-b94d-b575c5fd34c7

src/irc.c

index 75ab94b5d985a9cf39ecf162bab8722aa71e0706..795fcc771d5c5f4c6c9e919043823fc59a668ff9 100644 (file)
--- 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;
   }