aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/schedule.js1
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]){