aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-01-21 14:28:19 -0500
committerHolden Rohrer <hr@hrhr.dev>2020-01-21 14:28:19 -0500
commit3cc05d0d14a49821903cea8f0443f8a8eed74fdc (patch)
tree89cd8709ff119e8284503247d32333ba7612bc84
parentb04db8e3e4e215347db16d59179955ed195d021f (diff)
parent42ebf96d28314a5f24a6055859caebed8db06770 (diff)
merged master to socket
-rw-r--r--examples/jarvis.js3
-rw-r--r--tools/schedule.js2
2 files changed, 2 insertions, 3 deletions
diff --git a/examples/jarvis.js b/examples/jarvis.js
index a95131a..0dad87e 100644
--- a/examples/jarvis.js
+++ b/examples/jarvis.js
@@ -61,8 +61,7 @@ const notifsrc = '\
& git.hrhr.dev/ywot-clean \n\
& Try `COMMAND` today. Uptime: UPTIME. \n\
& Called: JARVISx ~SIGNATURE \n\
- '
-notifsrc = notifsrc.replace('COMMAND', command).replace('SIGNATURE', sig);
+ '.replace('COMMAND', command).replace('SIGNATURE', sig);
var minsUp = 0;
var callct = 0;
var notifClaim;
diff --git a/tools/schedule.js b/tools/schedule.js
index c9c39eb..526ebe4 100644
--- a/tools/schedule.js
+++ b/tools/schedule.js
@@ -76,7 +76,7 @@ exports.Queue = function(delayms, maxExport, call){
}
this.size -= data.length;
call(data);
- if (delayms) setTimeout(this.dequeue, delayms);
+ if (delayms) setTimeout(()=>this.dequeue(), delayms);
}
function getNumOrAll(prio, num){