aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emms-info.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/emms-info.el b/emms-info.el
index 7e0bfee..6976657 100644
--- a/emms-info.el
+++ b/emms-info.el
@@ -93,9 +93,9 @@ Return t when the track got changed."
(name (emms-track-get track 'name)))
;; if the file's been modified or is new
- (when (or (not info-mtime)
- (emms-time-less-p
- info-mtime file-mtime))
+ (when (and file-mtime
+ (or (not info-mtime)
+ (emms-time-less-p info-mtime file-mtime)))
(run-hook-with-args 'emms-info-functions track)
;; not set by info functions
(emms-track-set track 'info-mtime file-mtime)