aboutsummaryrefslogtreecommitdiff
path: root/emms-lastfm.el
diff options
context:
space:
mode:
authorTassilo Horn <tassilo@member.fsf.org>2007-06-26 19:13:00 +0000
committerTassilo Horn <tassilo@member.fsf.org>2007-06-26 19:13:00 +0000
commit1c5692efd0fe85c6391de11dc445116d364fdb6f (patch)
tree18940a49983d647683cf971928cbe810044f4652 /emms-lastfm.el
parent8117a9b46545993a1306c6381aa5efcf0191498a (diff)
simplify-lastfm-timer-cancelation-and-bump-version.dpatch
darcs-hash:20070626191355-c06f4-ae6c018d47f4cd90c8fe1e76b6ad533d9c5b5a08.gz
Diffstat (limited to 'emms-lastfm.el')
-rw-r--r--emms-lastfm.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/emms-lastfm.el b/emms-lastfm.el
index d9e4db6..2d7493c 100644
--- a/emms-lastfm.el
+++ b/emms-lastfm.el
@@ -131,9 +131,8 @@ paused track resumes) and sets the track submission timer."
(defun emms-lastfm-cancel-timer ()
"Cancels `emms-lastfm-timer' if it is running."
- (when emms-lastfm-timer
- (emms-cancel-timer emms-lastfm-timer)
- (setq emms-lastfm-timer nil)))
+ (emms-cancel-timer emms-lastfm-timer)
+ (setq emms-lastfm-timer nil))
(defun emms-lastfm-pause ()
"Handles things to be done when the player is paused or