Stop sending data when we see an 'aborted-by-system' or 'job-canceled-xxx' value
in job-state-reasons.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12260
a1ca3aef-8c08-0410-bb20-
df032aa958be
- Improved speed of ppdMarkDefaults for complex/large PPDs
(<rdar://problem/15146999>)
- Improved speed of ppdMarkDefaults for complex/large PPDs
(<rdar://problem/15146999>)
+ - The IPP backend now stops sending print data if the printer indicates
+ the job has been aborted or canceled (<rdar://problem/17837631>)
new_reasons |= _CUPS_JSR_JOB_PASSWORD_WAIT;
else if (!strcmp(attr->values[i].string.text, "job-release-wait"))
new_reasons |= _CUPS_JSR_JOB_RELEASE_WAIT;
new_reasons |= _CUPS_JSR_JOB_PASSWORD_WAIT;
else if (!strcmp(attr->values[i].string.text, "job-release-wait"))
new_reasons |= _CUPS_JSR_JOB_RELEASE_WAIT;
+ else if (!strncmp(attr->values[i].string.text, "job-canceled-", 13) || !strcmp(attr->values[i].string.text, "aborted-by-system"))
+ job_canceled = 1;
}
if (new_reasons != monitor->job_reasons)
}
if (new_reasons != monitor->job_reasons)