Leave idle state, if not already, right before sending a command.
This commit is contained in:
parent
fb88125743
commit
df960f5b75
1 changed files with 1 additions and 0 deletions
1
empc.el
1
empc.el
|
|
@ -204,6 +204,7 @@ enter idle state to accept notifications from the server."
|
|||
"Send COMMAND to the mpd server.
|
||||
Parse the response using the function FN which will then call CLOSURE."
|
||||
(empc-ensure-connected)
|
||||
(empc-leave-idle-state)
|
||||
(unless (string= (substring command -1) "\n")
|
||||
(setq command (concat command "\n")))
|
||||
(tq-enqueue empc-queue command empc-response-regexp
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue