aboutsummaryrefslogtreecommitdiff
path: root/emms-player-mpd.el
diff options
context:
space:
mode:
authorMichael Olson <mwolson@gnu.org>2006-04-06 03:45:00 +0000
committerMichael Olson <mwolson@gnu.org>2006-04-06 03:45:00 +0000
commit9a59fa35c1a9a165c0aad92eb24738ee4c5e1136 (patch)
tree8e6bee80d6599885ab7af9a55a0d28a6cf8d2506 /emms-player-mpd.el
parent1ad6f6d51ebbb64a117c12adbb298cce4d816cfb (diff)
emms-player-mpd: If the MusicPD daemon goes away, make sure that we can still stop EMMS.
darcs-hash:20060406034553-1bfb2-7a900012bcfc586c2b38632345da30e6af72b733.gz
Diffstat (limited to 'emms-player-mpd.el')
-rw-r--r--emms-player-mpd.el4
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 ()