From d0e6099db43a564ded60783ced4054460b71e31d Mon Sep 17 00:00:00 2001 From: Joseph Bongaarts Date: Wed, 10 Apr 2002 04:31:25 +0000 Subject: [PATCH] Author: Brian Cline By way of Ghostwolf Log message: To avoid problems with infinite event loops, don't try connecting to servers whose connect frequency is 0. pullup from u2_10_11 branch git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@721 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 5 +++++ ircd/ircd.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ce60e52..7ce62ac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-04-09 Brian Cline + + * ircd/ircd.c (try_connections): To avoid problems with infinite event + loops, don't try connecting to servers whose connect frequency is 0. + 2002-04-10 Alex Badea * ircd/ircd_parser.y: fixed a "features" block parse bug diff --git a/ircd/ircd.c b/ircd/ircd.c index 74ee561..a76ec8d 100644 --- a/ircd/ircd.c +++ b/ircd/ircd.c @@ -238,7 +238,7 @@ static void try_connections(struct Event* ev) { Debug((DEBUG_NOTICE, "Connection check at : %s", myctime(CurrentTime))); for (aconf = GlobalConfList; aconf; aconf = aconf->next) { /* Also when already connecting! (update holdtimes) --SRB */ - if (!(aconf->status & CONF_SERVER) || aconf->port == 0) + if (!(aconf->status & CONF_SERVER) || aconf->port == 0 || aconf->hold == 0) continue; /* Also skip juped servers */ -- 2.20.1