« get me outta code hell

Stop players from playing after they're removed! - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2019-09-25 17:43:52 -0300
committerFlorrie <towerofnix@gmail.com>2019-09-25 17:43:52 -0300
commit84d0985b40fcf7864dd14d181c74591196c0d415 (patch)
tree36c87d7b6846608acf55efe723aa1dae70149ab4
parent8d55de55298e00b9dc62f368c23e516f9941b5ba (diff)
Stop players from playing after they're removed!
-rw-r--r--ui.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui.js b/ui.js
index eafff01..ba7a798 100644
--- a/ui.js
+++ b/ui.js
@@ -435,6 +435,7 @@ class AppElement extends FocusElement {
     queuePlayer.removeListener('receivedTimeData', this.handleReceivedTimeData)
     queuePlayer.removeListener('playing', this.handlePlaying)
     queuePlayer.removeListener('queue updated', this.handleQueueUpdated)
+    queuePlayer.stopPlaying()
   }
 
   attachBackendListeners() {