diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/jarvis.js | 1 |
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()); |