diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/schedule.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/schedule.js b/tools/schedule.js index 4fa95b3..bbc2a08 100644 --- a/tools/schedule.js +++ b/tools/schedule.js @@ -26,6 +26,7 @@ exports.Queue = function(delayms, maxExport, call){ let disab = true; // Is the queue disabled? this.enqueue = function(job){ + if (! job[0]) return; if (! (job instanceof exports.Job)) job = new exports.Job(job); let prio = job.prio; if (!jobs[prio]){ |