« 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--socket.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/socket.js b/socket.js
index fec66d7..284c767 100644
--- a/socket.js
+++ b/socket.js
@@ -283,6 +283,8 @@ function makeSocketServer() {
             if (readySockets && !readySockets.includes(socket)) {
               readySockets.push(socket)
               if (readySockets.length === sockets.length) {
+                const QP = server.canonicalBackend.queuePlayers.find(QP => QP.id === command.queuePlayer)
+                silenceEvents(QP, ['set-pause'], () => QP.setPause(false))
                 for (const socket of sockets) {
                   socket.write(serializeCommandToData({
                     sender: 'server',