From: Michael R Sweet Date: Mon, 7 Apr 2025 14:30:52 +0000 (-0400) Subject: Mirror ippfind timeout fix from 2.4.x. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14da9801f0bcd6b981d8030e93505b066e7e0d93;p=thirdparty%2Fcups.git Mirror ippfind timeout fix from 2.4.x. --- 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...