diff options
author | Michael Olson <mwolson@gnu.org> | 2006-04-06 03:45:00 +0000 |
---|---|---|
committer | Michael Olson <mwolson@gnu.org> | 2006-04-06 03:45:00 +0000 |
commit | 9a59fa35c1a9a165c0aad92eb24738ee4c5e1136 (patch) | |
tree | 8e6bee80d6599885ab7af9a55a0d28a6cf8d2506 | |
parent | 1ad6f6d51ebbb64a117c12adbb298cce4d816cfb (diff) |
emms-player-mpd: If the MusicPD daemon goes away, make sure that we can still stop EMMS.
darcs-hash:20060406034553-1bfb2-7a900012bcfc586c2b38632345da30e6af72b733.gz
-rw-r--r-- | emms-player-mpd.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/emms-player-mpd.el b/emms-player-mpd.el index a2aa884..5dac00a 100644 --- a/emms-player-mpd.el +++ b/emms-player-mpd.el @@ -623,7 +623,9 @@ Afterward, the status of MusicPD will be tracked." (emms-cancel-timer emms-player-mpd-status-timer) (setq emms-player-mpd-status-timer nil) (setq emms-player-stopped-p t) - (emms-player-mpd-send "stop") + (condition-case nil + (emms-player-mpd-send "stop") + (error nil)) (emms-player-stopped)) (defun emms-player-mpd-pause () |