« get me outta code hell

mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--client.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/client.js b/client.js
index a0c8352..190c087 100644
--- a/client.js
+++ b/client.js
@@ -53,6 +53,7 @@ const setupClient = async ({backend, writable, interfacer, appConfig}) => {
   root.select(appElement)
 
   appElement.on('quitRequested', () => {
+    appElement.removeListeners()
     cleanTerminal()
   })