aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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());