Skip to content

Commit 2ced84a

Browse files
committed
Mirror ippfind timeout fix from 2.4.x.
1 parent 47a6f1e commit 2ced84a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/ippfind.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ main(int argc, // I - Number of command-line args
10221022
if (getenv("IPPFIND_DEBUG"))
10231023
fprintf(stderr, "STATUS processed=%u, resolved=%u, count=%u\n", (unsigned)processed, (unsigned)resolved, (unsigned)count);
10241024

1025-
if (processed > 0 && (processed == cupsArrayGetCount(services.services) || (cupsGetClock() - last_update) >= 2.5) && bonjour_timeout <= 1.0)
1025+
if (bonjour_timeout <= 1.0 && cupsGetClock() >= 2.5 && (processed == cupsArrayGetCount(services.services) || (cupsGetClock() - last_update) >= 1.0))
10261026
break;
10271027

10281028
// Give the browsers/resolvers some time...

0 commit comments

Comments
 (0)