Leave idle state, if not already, right before sending a command.

This commit is contained in:
Renaud Casenave-Péré 2011-07-04 11:59:19 +09:00
parent fb88125743
commit df960f5b75

View file

@ -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