]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Tweak end-of-scan condition (Issue #1214, Issue #1211)
authorMichael R Sweet <msweet@msweet.org>
Mon, 7 Apr 2025 14:28:40 +0000 (10:28 -0400)
committerMichael R Sweet <msweet@msweet.org>
Mon, 7 Apr 2025 14:28:40 +0000 (10:28 -0400)
tools/ippfind.c

index a7b97604afbd6c7fd4b081283da01d3548c5e9ea..b67e44231e67ddfffbd8e0098451d1fd3d3c11e1 100644 (file)
@@ -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;
   }