From: Michael R Sweet Date: Mon, 7 Apr 2025 14:28:40 +0000 (-0400) Subject: Tweak end-of-scan condition (Issue #1214, Issue #1211) X-Git-Tag: v2.4.12~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c710ad741f5523a57032aa68f68b031fe4815d1;p=thirdparty%2Fcups.git Tweak end-of-scan condition (Issue #1214, Issue #1211) --- diff --git a/tools/ippfind.c b/tools/ippfind.c index a7b97604af..b67e44231e 100644 --- a/tools/ippfind.c +++ b/tools/ippfind.c @@ -1431,7 +1431,7 @@ main(int argc, /* I - Number of command-line args */ * If we have processed all services we have discovered, then we are done. */ - if (processed > 0 && (processed == cupsArrayCount(services) || (_cupsGetClock() - last_update) >= 2.5) && bonjour_timeout <= 1.0) + if (bonjour_timeout <= 1.0 && _cupsGetClock() >= 2.5 && (processed == cupsArrayCount(services) || (_cupsGetClock() - last_update) >= 1.0)) break; }