From 583c01bd0c79df2240867c34c6d4b21813d2e95a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 4 Dec 1998 06:52:37 +0000 Subject: Fix an error in the wedge-detection logic. svn path=/trunk/; revision=2259 --- fetchmail.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index 7d368e1b..06daa86d 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -513,15 +513,16 @@ int main (int argc, char **argv) batchcount = 0; for (ctl = querylist; ctl; ctl = ctl->next) { - if (ctl->wedged) - { - error(0, -1, - _("poll of %s skipped (failed authentication or too many timeouts)"), - ctl->server.pollname); - continue; - } if (ctl->active && !(implicitmode && ctl->server.skip)) { + if (ctl->wedged) + { + error(0, -1, + _("poll of %s skipped (failed authentication or too many timeouts)"), + ctl->server.pollname); + continue; + } + /* check skip interval first so that it counts all polls */ if (run.poll_interval && ctl->server.interval) { @@ -614,8 +615,9 @@ int main (int argc, char **argv) int unwedged = 0; for (ctl = querylist; ctl; ctl = ctl->next) - if (!ctl->wedged) - unwedged++; + if (ctl->active && !(implicitmode && ctl->server.skip)) + if (!ctl->wedged) + unwedged++; if (!unwedged) { error(0, -1, _("All connections are wedged. Exiting.")); -- cgit v1.2.3