branch: elpa/mastodon
commit 894e8c0d82b75d188620b4435becb29d08a4fee2
Author: marty hiatt <[email protected]>
Commit: marty hiatt <[email protected]>

    notifs updates comments
---
 lisp/mastodon-notifications.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lisp/mastodon-notifications.el b/lisp/mastodon-notifications.el
index 63554cc447..b8b96695ac 100644
--- a/lisp/mastodon-notifications.el
+++ b/lisp/mastodon-notifications.el
@@ -998,10 +998,13 @@ Also nil the variable."
   ;; `mastodon-mode' loads before we populate the buffer via an update fun
   ;; do we need an after-update hook?
   (if (not (mastodon-live-buffers))
+      ;; if not masto buffers: cancel everything:
       (mastodon-notifications-cancel-timer)
     (when mastodon-notifications-check-for-updates
-      ;; set new timer if we don't have one:
+      ;; FIXME: it is poss for this var to be non-nil but no such timer in
+      ;; `list-timers':
       (unless mastodon-notifications-timer
+        ;; set new timer if we don't have one:
         (setq mastodon-notifications-timer
               (run-at-time mastodon-notifications-updates-interval
                            nil #'mastodon-notifications--update-check))))))

Reply via email to