From 234190f338439c84bc5d58aeaced264efaa424d4 Mon Sep 17 00:00:00 2001 From: Michael Olson Date: Wed, 12 Apr 2006 05:26:00 +0000 Subject: emms-player-mpd: Don't start the timer upon playing a track if `emms-player-mpd-sync-playlist' is nil. darcs-hash:20060412052632-1bfb2-8733e8d42b9c6a006c09087655f0a4d59a11e877.gz --- emms-player-mpd.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/emms-player-mpd.el b/emms-player-mpd.el index 6a69174..73cb297 100644 --- a/emms-player-mpd.el +++ b/emms-player-mpd.el @@ -716,13 +716,12 @@ playlist." (setq emms-player-mpd-status-timer (run-at-time t emms-player-mpd-check-interval 'emms-player-mpd-detect-song-change))))) + ;; we only want to play one track, so don't start the timer (emms-player-mpd-send "play" nil (lambda (closure response) - (setq emms-player-mpd-status-timer - (run-at-time t emms-player-mpd-check-interval - 'emms-player-mpd-detect-song-change)))))) + (emms-player-started 'emms-player-mpd))))) (defun emms-player-mpd-start-and-sync-1 (buffer) (when emms-player-mpd-status-timer -- cgit v1.2.3