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