From 69b0dcc874dadc81848b26820f3bdf15cb86e3a7 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Fri, 17 Jul 2020 20:54:06 -0400 Subject: forgot to handle accidental socket disruption in nword --- examples/nword.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/nword.js b/examples/nword.js index 19c9c8a..1316db2 100644 --- a/examples/nword.js +++ b/examples/nword.js @@ -37,6 +37,9 @@ main.on('init',(send)=>{ main.sender = send; wq.enable(); }); +main.on('close',()=>{ + wq.disable(); +}); var expire = {}; main.on('tileUpdate', (send, source, tiles)=>{ -- cgit