From 14da9801f0bcd6b981d8030e93505b066e7e0d93 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 7 Apr 2025 10:30:52 -0400 Subject: [PATCH] Mirror ippfind timeout fix from 2.4.x. --- tools/ippfind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ippfind.c b/tools/ippfind.c index 64c07f90ec..73c43c8288 100644 --- a/tools/ippfind.c +++ b/tools/ippfind.c @@ -1122,7 +1122,7 @@ main(int argc, // I - Number of command-line args if (getenv("IPPFIND_DEBUG")) fprintf(stderr, "STATUS processed=%u, resolved=%u, count=%u\n", (unsigned)processed, (unsigned)resolved, (unsigned)count); - if (processed > 0 && (processed == cupsArrayGetCount(services.services) || (cupsGetClock() - last_update) >= 2.5) && bonjour_timeout <= 1.0) + if (bonjour_timeout <= 1.0 && cupsGetClock() >= 2.5 && (processed == cupsArrayGetCount(services.services) || (cupsGetClock() - last_update) >= 1.0)) break; // Give the browsers/resolvers some time... -- 2.47.2