From 3c710ad741f5523a57032aa68f68b031fe4815d1 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 7 Apr 2025 10:28:40 -0400 Subject: [PATCH] Tweak end-of-scan condition (Issue #1214, Issue #1211) --- tools/ippfind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.2