diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-01-18 23:48:39 -0500 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-01-19 18:41:14 -0500 |
commit | 7f26447c01fd3ce8309b38ff443f0760484cba0f (patch) | |
tree | a2404221fbe730c76a625cb913e9c7f0434b17ca /tools | |
parent | 9d9af21791fc3f74c5165df850f943ef7a748b4e (diff) |
schedule now rejects empty enqueues
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]){ |