diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-07-17 20:54:06 -0400 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-07-17 20:54:43 -0400 |
commit | 69b0dcc874dadc81848b26820f3bdf15cb86e3a7 (patch) | |
tree | b789bf6253b313c08663d999e6f480dea944f608 | |
parent | db36e4680af51f83652a2c1c9de766b84cdbd03f (diff) |
forgot to handle accidental socket disruption in nword
-rw-r--r-- | examples/nword.js | 3 |
1 files changed, 3 insertions, 0 deletions
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)=>{ |