if hints is empty (frequently is), no reason to call refresh-view
also as a nice bonus, this stops the debug log call here from spamming up the log if the refresh-watcher thread is running on a frequent timer interval
This commit is contained in:
parent
4559d39bb7
commit
6636b1e720
|
@ -150,8 +150,9 @@
|
|||
(defn refresh-views!
|
||||
"Given a collection of hints, or a single hint, find all dirty views and schedule them for a refresh."
|
||||
([hints]
|
||||
(debug "refresh hints:" hints)
|
||||
(mapv #(refresh-view! hints %) (subscribed-views))
|
||||
(when (seq hints)
|
||||
(debug "refresh hints:" hints)
|
||||
(mapv #(refresh-view! hints %) (subscribed-views)))
|
||||
(swap! view-system assoc :last-update (System/currentTimeMillis)))
|
||||
([]
|
||||
(refresh-views! (pop-hints!))))
|
||||
|
|
Loading…
Reference in a new issue