Ticket #2782: mythtv_jobqueue_1.patch

File mythtv_jobqueue_1.patch, 734 bytes (added by oa@…, 14 years ago)

bugfix - process jobqueue stop and pause commands even when running max jobs

  • libs/libmythtv/jobqueue.cpp

     
    253254            for (unsigned int x = 0;
    254                  (x < jobs.size()) && (jobsRunning < maxJobs); x++)
     255                 x < jobs.size(); x++)
    255256            {
    256257                id = jobs[x].id;
    257258                chanid = jobs[x].chanid;
     
    431431                }
    432432
    433433                // never start or claim more than one job in a single run
    434                 if (startedJobAlready)
     434                if (startedJobAlready || atMax)
    435435                    continue;
    436436
    437437                if ((inTimeWindow) &&