From 86db15f22b2615ddf89e5cbd3c7a931935827c5e Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Tue, 24 Dec 2019 16:44:33 -0500 Subject: fixed jarvis queue --- examples/jarvis.js | 1 + 1 file changed, 1 insertion(+) (limited to 'examples') 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()); -- cgit