Fix an error in `empc-response-get-status' when there is nothing to notify.
This commit is contained in:
parent
3fc46f0b54
commit
79ac4c2a6e
1 changed files with 2 additions and 1 deletions
3
empc.el
3
empc.el
|
|
@ -158,7 +158,8 @@ According to what is in the diff, several actions can be performed:
|
|||
empc-current-playlist-songs)))))
|
||||
(empc-stream-start))
|
||||
(setq notify '(lambda () (empc-echo-notify (symbol-name (plist-get status-diff :state)))))))
|
||||
(funcall notify)))
|
||||
(when notify
|
||||
(funcall notify))))
|
||||
|
||||
(defun empc-parse-status-attr (attr value)
|
||||
"Parse a single attribute from status."
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue