connect when updating state
This commit is contained in:
parent
bbe44445aa
commit
0b775d7cf2
1 changed files with 2 additions and 0 deletions
|
|
@ -57,6 +57,8 @@ check will not be periodically performed."
|
|||
(ido-mpc-update-state))
|
||||
|
||||
(defun ido-mpc-update-state ()
|
||||
(unless ido-mpc-conn
|
||||
(ido-mpc-connect))
|
||||
(setq ido-mpc-state (plist-get (mpd-get-status ido-mpc-conn) 'state))
|
||||
(unless ido-mpc-state
|
||||
(ido-mpc-connect)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue