]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Make sure monitor_done is initialized before running the monitor thread (thanks,...
authorMichael R Sweet <michael.r.sweet@gmail.com>
Sun, 2 May 2021 12:18:24 +0000 (08:18 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Sun, 2 May 2021 12:18:24 +0000 (08:18 -0400)
tools/ipptool.c

index 11c93e1ead3a046398e4f9c3b7db81ff86bfc828..49374761df1ab3d336efd93fe35d0e2d1244a9d9 100644 (file)
@@ -1197,7 +1197,10 @@ do_test(_ipp_file_t    *f,               /* I - IPP data file */
   */
 
   if (data->monitor_uri)
+  {
+    data->monitor_done   = 0;
     data->monitor_thread = _cupsThreadCreate((_cups_thread_func_t)do_monitor_printer_state, data);
+  }
 
  /*
   * Take over control of the attributes in the request...