bool done = sent == cupsArrayGetCount(Devices) && (time(NULL) - start) > 5;
- cupsMutexUnlock(&DevicesMutex);
-
if (done)
+ {
+ cupsMutexUnlock(&DevicesMutex);
break;
+ }
}
+
+ cupsMutexUnlock(&DevicesMutex);
}
return (CUPS_BACKEND_OK);
remprefix = "STATE: -";
remptr = rem;
+ cupsMutexLock(&report_mutex);
+
fprintf(stderr, "DEBUG2: op='%c', new_reasons=%d, state_reasons=%d\n",
op ? op : ' ', cupsArrayCount(new_reasons),
cupsArrayCount(state_reasons));
- cupsMutexLock(&report_mutex);
-
if (op == '+')
{
/*
}
job->num_files = 0;
+
+ cupsRWUnlock(&MimeDatabase->lock);
+
return (0);
}
* reasons message there...
*/
- if (action >= CUPSD_JOB_FORCE && job && job->printer)
+ if (action >= CUPSD_JOB_FORCE && job->printer)
ippSetString(job->attrs, &job->reasons, 0, "processing-to-stop-point");
break;
}