From 29cea3ef41b238ce93f6ac58684b8bdb80357cbb Mon Sep 17 00:00:00 2001 From: nohar Date: Mon, 23 May 2005 22:55:04 +0000 Subject: [PATCH] guinness DEFINITELY *IS* good for codaz --- src/irc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/irc.c b/src/irc.c index 6217e3c..9f05f32 100644 --- a/src/irc.c +++ b/src/irc.c @@ -1939,16 +1939,16 @@ void irc_main(connection_t *inc, list_t *ll) struct link *link; connection_t *conn; - /* Lauch reconnections */ - while ((link = list_remove_first(&reconnectl))) { - conn = irc_server_connect(link); - list_add_last(&connl, conn); - } - /* Compute timeouts for next reconnections and lagouts */ if (timeleft == 0) { timeleft = 1000; + /* Lauch one reconnection at a time */ + if ((link = list_remove_first(&reconnectl))) { + conn = irc_server_connect(link); + list_add_last(&connl, conn); + } + /* log flushs */ if (logflush_timer-- <= 0) { logflush_timer = conf_log_sync_interval;