94a27c
diff --git a/utils/cups-browsed.c b/utils/cups-browsed.c
94a27c
index c6c257e..2cc64dd 100644
94a27c
--- a/utils/cups-browsed.c
94a27c
+++ b/utils/cups-browsed.c
94a27c
@@ -2747,6 +2747,13 @@ on_printer_state_changed (CupsNotifier *object,
94a27c
 	if (i == q->last_printer)
94a27c
 	  break;
94a27c
       }
94a27c
+
94a27c
+      /* Close remote connection */
94a27c
+      if (http) {
94a27c
+        httpClose(http);
94a27c
+        http = NULL;
94a27c
+      }
94a27c
+
94a27c
       /* Find the ID of the current job */
94a27c
       request = ippNewRequest(IPP_GET_JOBS);
94a27c
       httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL,