diff options
author | Timo Sirainen <cras@irssi.org> | 2001-12-03 23:46:12 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-12-03 23:46:12 +0000 |
commit | aeae7935ecdb802a7d6de1248cc826bec056b3ec (patch) | |
tree | d82b52034b0c8eb1e7cb63d0cc88676d92e797d1 | |
parent | 6041c93b56ce1dc868bf20a2857613d85e3522e6 (diff) | |
download | irssi-aeae7935ecdb802a7d6de1248cc826bec056b3ec.zip |
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
-rw-r--r-- | src/irc/core/servers-redirect.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |