cleanly close connection before trying to reconnect.
This commit is contained in:
parent
d2eb2389e6
commit
ccc41ce02c
1 changed files with 2 additions and 0 deletions
|
|
@ -47,6 +47,8 @@ check will not be periodically performed."
|
|||
|
||||
(defun ido-mpc-connect ()
|
||||
(interactive)
|
||||
(when ido-mpc-conn
|
||||
(mpd-close-connection ido-mpc-conn))
|
||||
(setq ido-mpc-conn (mpd-conn-new ido-mpc-server-url
|
||||
ido-mpc-server-port
|
||||
1 nil))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue