Fix an error in `empc-response-get-status' when there is nothing to notify.

This commit is contained in:
Renaud Casenave-Péré 2011-08-10 14:35:32 +09:00
parent 3fc46f0b54
commit 79ac4c2a6e

View file

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