]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
<rdar://problem/17837631> OS X continues sending print data after the print job is...
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Wed, 19 Nov 2014 12:52:21 +0000 (12:52 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Wed, 19 Nov 2014 12:52:21 +0000 (12:52 +0000)
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

CHANGES.txt
backend/ipp.c

index a24be423c1e6337b053f67cbea83be282f14c25d..bd75b680c6e0e1c4375ea961a419c8a7518eaea6 100644 (file)
@@ -5,3 +5,5 @@ CHANGES IN CUPS V2.1b1
 
        - 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>)
index dc1a18289f89266985d7e76e2f6f3cefaac9d9ee..8edfdcadca8544ee2e2913a3cc7bd34e9d14e293 100644 (file)
@@ -2448,6 +2448,8 @@ monitor_printer(
             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)