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