From 7f26447c01fd3ce8309b38ff443f0760484cba0f Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Sat, 18 Jan 2020 23:48:39 -0500
Subject: schedule now rejects empty enqueues
---
tools/schedule.js | 1 +
1 file changed, 1 insertion(+)
(limited to 'tools')
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]){
--
cgit