]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
cups-browsed: Remove left-over local queues more quickly
authorTill Kamppeter <till.kamppeter@gmail.com>
Tue, 30 Jun 2020 09:26:42 +0000 (11:26 +0200)
committerTill Kamppeter <till.kamppeter@gmail.com>
Thu, 20 Aug 2020 19:39:43 +0000 (21:39 +0200)
(cherry picked from commit de3420ca8b6e3d4b165606bf02d6f298f9cdccb2)

NEWS
utils/cups-browsed.c

diff --git a/NEWS b/NEWS
index ab604e68eb09566b108e614b4fc7f5b7b4ccf1ff..151ccbead353f9966849fc968c465a4729e25b39 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,9 @@ NEWS - OpenPrinting CUPS Filters v1.27.5 - 2020-06-05
 
 CHANGES IN V1.28.0
 
+       - cups-browsed: Remove left-over local queues from the
+         previous session more quickly when CUPS legacy browsing is
+         turned on.
        - cups-browsed: Left-over local queues from the previous
          session for which the corresponding did not appear again did
          not get removed as they were considered externally
index af0411158a907e4fd772f17da9524b13a4eee840..ec1944d814b473bf9475ad97a42da5752b930017 100644 (file)
@@ -11929,7 +11929,7 @@ find_previous_queue (gpointer key,
       p->status = STATUS_UNCONFIRMED;
 
       if (BrowseRemoteProtocols & BROWSE_CUPS)
-       p->timeout = time(NULL) + BrowseTimeout;
+       p->timeout = time(NULL) + BrowseInterval * 3 / 2;
       else
        p->timeout = time(NULL) + TIMEOUT_CONFIRM;