« 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
committerFlorrie <towerofnix@gmail.com>2020-07-12 17:57:07 -0300
commit1230a2cfac4b0d907631eddb4d0dc798f5bb3564 (patch)
tree47cf02cf7c9651699c7124d799266f3423141bfb /backend.js
parent1db8576654d43978426a6f3703df532a688872d1 (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 573a4fc..20aec7d 100644
--- a/backend.js
+++ b/backend.js
@@ -523,6 +523,7 @@ class QueuePlayer extends EventEmitter {
       this.playingTrack = null
       this.timeData = null
       this.time = null
+      this.emit('playing details', null, oldTrack, this)
       this.emit('playing', null, oldTrack, this)
     }
   }