aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHolden Rohrer <holden.rohrer@gmail.com>2019-12-29 20:03:27 -0500
committerHolden Rohrer <holden.rohrer@gmail.com>2019-12-29 20:03:27 -0500
commit84f6f0109b3e3e4ab6ee667403400ba31402a840 (patch)
treeef5afc5823daba463750d1627512d439bea4fe0a /examples
parent220fd99ffe9270b8d30e84b3d935ab0696f1a808 (diff)
integrated queue disabling into jarvis
Diffstat (limited to 'examples')
-rw-r--r--examples/jarvis.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/jarvis.js b/examples/jarvis.js
index 5103934..3572a3c 100644
--- a/examples/jarvis.js
+++ b/examples/jarvis.js
@@ -27,7 +27,11 @@ main.on('open', ()=>{ // Tries to identify itself with a cursor movement
identity(send);
}
}
-})
+});
+
+main.on('close', ()=>{
+ writes.disable()
+});
var sender; // Global variable that holds identity()'s `send` for tileHandler
@@ -39,6 +43,7 @@ function identity(send){
}
function init(){
+ writes.enable();
notifRefresh();
}