From: Michael R Sweet Date: Mon, 18 Nov 2019 20:39:32 +0000 (-0500) Subject: Don't wait for held jobs to complete. X-Git-Tag: v2.3.1~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd8e2bdb2da53db37831baaa0db2a05fc47fc2aa;p=thirdparty%2Fcups.git Don't wait for held jobs to complete. --- diff --git a/backend/ipp.c b/backend/ipp.c index b2b22065ef..60a4ef20f6 100644 --- a/backend/ipp.c +++ b/backend/ipp.c @@ -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;