From 779ad8a69c031b768d16af79154a30e92730e5c3 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Sat, 18 Jan 2020 17:28:05 -0500 Subject: moved deinit on close to ident.js --- examples/jarvis.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples') 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; -- cgit