]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Don't wait for held jobs to complete.
authorMichael R Sweet <michael.r.sweet@gmail.com>
Mon, 18 Nov 2019 20:39:32 +0000 (15:39 -0500)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Mon, 18 Nov 2019 20:39:32 +0000 (15:39 -0500)
backend/ipp.c

index b2b22065ef4ab9e5e964f1c36d482c9eff4eee8d..60a4ef20f6d86ff558d1dfd49709187c2f8c67c6 100644 (file)
@@ -2124,11 +2124,10 @@ main(int  argc,                         /* I - Number of command-line args */
                    job_sheets->values[0].integer);
 
         /*
-          * Stop polling if the job is finished or pending-held for 30 seconds...
+          * Stop polling if the job is finished or pending-held...
          */
 
-          if (job_state->values[0].integer > IPP_JSTATE_STOPPED ||
-             (job_state->values[0].integer == IPP_JSTATE_HELD && time(NULL) > waittime))
+          if (job_state->values[0].integer > IPP_JSTATE_STOPPED || job_state->values[0].integer == IPP_JSTATE_HELD)
          {
            ippDelete(response);
            break;