aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <holden.rohrer@gmail.com>2019-12-24 16:44:33 -0500
committerHolden Rohrer <holden.rohrer@gmail.com>2019-12-27 14:52:44 -0500
commit86db15f22b2615ddf89e5cbd3c7a931935827c5e (patch)
tree7469b606fb6faf27d3309944eb256a8789db5db7
parentfa7b2028715ce321dc2c1b16d0f0e4d60bcdae3d (diff)
fixed jarvis queue
-rw-r--r--examples/jarvis.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/jarvis.js b/examples/jarvis.js
index d21a41c..f5a3ce2 100644
--- a/examples/jarvis.js
+++ b/examples/jarvis.js
@@ -70,6 +70,7 @@ function respond(coord){
console.log('called at', coord);
if (open){
main.write(response.towrite());
+ open = false;
setTimeout(send, 1000);
} else {
queue.push(response.towrite());