aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-01-18 17:28:05 -0500
committerHolden Rohrer <hr@hrhr.dev>2020-01-18 17:28:05 -0500
commit779ad8a69c031b768d16af79154a30e92730e5c3 (patch)
tree939e6971be97c2ba6e2e9ab1478614314f4922c5 /examples
parent71f281b208e71014fa61c23a943b1b326272556e (diff)
moved deinit on close to ident.js
Diffstat (limited to 'examples')
-rw-r--r--examples/jarvis.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/jarvis.js b/examples/jarvis.js
index a8373ce..b82584f 100644
--- a/examples/jarvis.js
+++ b/examples/jarvis.js
@@ -14,8 +14,7 @@ const id = require('../utils/ident');
//// Basic handling on open and close of the socket
var main = new Socket();
-id(main, initOnce, init);
-main.on('close', deinit);
+id(main, initOnce, init, deinit);
//// tileUpdates require knowledge of the prog's identity (sender)
var sender;