Changelog for HylaFAX 4.2.2
+* fix a race with scheduled jobs to allow for coordinated
+ batch sending (25 Jul 2005)
* fix some error conditions with JBIG and JPEG reception (25 Jul 2005)
* improve probemodem results for some modems (16 Jul 2005)
* correct cover sheet page count for some PDFs (14 Jul 2005)
*/
/*
- * Insert a job in the queue of read-to-run jobs.
+ * Insert a job in the queue of ready-to-run jobs.
*/
void
faxQueueApp::setReadyToRun(Job& job)
{
job.remove();
setReadyToRun(job);
+ /*
+ * In order to deliberately batch jobs by using a common
+ * time-to-send we need to give time for the other jobs'
+ * timers to expire and to enter the run queue before
+ * running the scheduler.
+ */
+ sleep(1); // is this long enough?
pokeScheduler();
}