From 9a59fa35c1a9a165c0aad92eb24738ee4c5e1136 Mon Sep 17 00:00:00 2001 From: Michael Olson Date: Thu, 6 Apr 2006 03:45:00 +0000 Subject: emms-player-mpd: If the MusicPD daemon goes away, make sure that we can still stop EMMS. darcs-hash:20060406034553-1bfb2-7a900012bcfc586c2b38632345da30e6af72b733.gz --- emms-player-mpd.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'emms-player-mpd.el') 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 () -- cgit v1.2.3