From 34baf6e8418a2a999aa45da889a11ecddc2abdf3 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bonicoli Date: Fri, 10 Jul 2015 11:49:30 +0200 Subject: [PATCH] Always call bip_tick when select timeout --- src/connection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/connection.c b/src/connection.c index ab1516e..827a61a 100644 --- a/src/connection.c +++ b/src/connection.c @@ -874,8 +874,9 @@ list_t *wait_event(list_t *cn_list, int *msec, int *nc) return cn_newdata; fatal("select(): %s", strerror(errno)); } else if (err == 0) { - mylog(LOG_DEBUGTOOMUCH, "Select timed-out. irc.o timer !"); /* select timed-out */ + mylog(LOG_DEBUGTOOMUCH, "Select timed-out. irc.o timer !"); + *msec = 0; return cn_newdata; }