Skip to content

Commit

Permalink
Make sure monitor_done is initialized before running the monitor thre…
Browse files Browse the repository at this point in the history
…ad (thanks, Smith!)
  • Loading branch information
michaelrsweet committed May 2, 2021
1 parent c033a5c commit 854a1ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/ipptool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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...
Expand Down

0 comments on commit 854a1ab

Please sign in to comment.