mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05: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
@ -453,7 +453,7 @@ static REDIRECT_REC *redirect_find(IRC_SERVER_REC *server, const char *event,
|
|||||||
} else if (redirect != NULL) {
|
} else if (redirect != NULL) {
|
||||||
/* check if redirection failed */
|
/* check if redirection failed */
|
||||||
if (rec->aborted ||
|
if (rec->aborted ||
|
||||||
++rec->failures >= MAX_FAILURE_COUNT) {
|
rec->failures++ >= MAX_FAILURE_COUNT) {
|
||||||
/* enough failures, abort it now */
|
/* enough failures, abort it now */
|
||||||
if (!rec->remote || REDIRECT_IS_TIMEOUTED(rec))
|
if (!rec->remote || REDIRECT_IS_TIMEOUTED(rec))
|
||||||
redirect_abort(server, rec);
|
redirect_abort(server, rec);
|
||||||
|
Loading…
Reference in New Issue
Block a user