cleanly close the transfert queue upon deconnection
This commit is contained in:
parent
0b775d7cf2
commit
4520162ab1
1 changed files with 3 additions and 1 deletions
4
empc.el
4
empc.el
|
|
@ -98,7 +98,9 @@ return at the end of a request.")
|
|||
(when (and empc-process
|
||||
(processp empc-process)
|
||||
(eq (process-status empc-process) 'open))
|
||||
(empc-send "close")))
|
||||
(empc-send "close"))
|
||||
(tq-close empc-queue)
|
||||
(setq empc-process nil))
|
||||
|
||||
(defun empc-send (command &optional fn closure delay)
|
||||
"Send COMMAND to the mpd server."
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue