mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02:00
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
This commit is contained in:
parent
6041c93b56
commit
aeae7935ec
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue