From aeae7935ecdb802a7d6de1248cc826bec056b3ec Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 3 Dec 2001 23:46:12 +0000 Subject: [PATCH] MAX_FAILURE_COUNT was used off-by-one (ie. 1 meant actually 0..) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2190 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/servers-redirect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/irc/core/servers-redirect.c b/src/irc/core/servers-redirect.c index 7258414e..40ae16f5 100644 --- a/src/irc/core/servers-redirect.c +++ b/src/irc/core/servers-redirect.c @@ -453,7 +453,7 @@ static REDIRECT_REC *redirect_find(IRC_SERVER_REC *server, const char *event, } else if (redirect != NULL) { /* check if redirection failed */ if (rec->aborted || - ++rec->failures >= MAX_FAILURE_COUNT) { + rec->failures++ >= MAX_FAILURE_COUNT) { /* enough failures, abort it now */ if (!rec->remote || REDIRECT_IS_TIMEOUTED(rec)) redirect_abort(server, rec);