From efe2d9fd8224bdbef18e65280c2021625d62043a Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 18 Jan 2015 13:41:05 +0000 Subject: [PATCH] - 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 --- src/irc.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.30.2