« get me outta code hell

support stop-playing over client sockets - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/backend.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2020-07-12 17:56:33 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-16 19:04:54 -0300
commit1be05b974e5ff09fbab1cda89b2f4223cd97bedb (patch)
treec03f338a66bff0b4d0481d4c8a6fb5b4e7103a3f /backend.js
parent1f916d3acd03acdc67699e24015562a3d2422f27 (diff)
support stop-playing over client sockets
Diffstat (limited to 'backend.js')
-rw-r--r--backend.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend.js b/backend.js
index 6e669d9..3b2343e 100644
--- a/backend.js
+++ b/backend.js
@@ -559,6 +559,7 @@ class QueuePlayer extends EventEmitter {
       this.playingTrack = null
       this.timeData = null
       this.time = null
+      this.emit('playing details', null, oldTrack, 0, this)
       this.emit('playing', null, oldTrack, 0, this)
     }
   }