aboutsummaryrefslogtreecommitdiff
path: root/emms-lastfm.el
diff options
context:
space:
mode:
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