Fix for updating hash.

This commit is contained in:
Alexander Hudek 2015-08-10 19:40:48 -04:00
parent bff7c9eb5f
commit cd6a6e559a
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
(defproject views "1.4.3"
(defproject views "1.4.4"
:description "A view to the past helps navigate the future."
:url "https://github.com/kirasystems/views"

View file

@ -60,8 +60,8 @@
data-hash (hash vdata)]
;; Check to make sure that we are still subscribed. It's possible that
;; an unsubscription event came in while computing the view.
(when (get-in @view-system [:subscribed subscriber-key view-sig])
(update-hash! view-system view-sig data-hash)
(when (contains? (get-in @view-system [:subscribed subscriber-key]) view-sig)
(swap! view-system update-hash! view-sig data-hash)
((get @view-system :send-fn) subscriber-key [[view-id parameters] vdata])))
(catch Exception e
(error "error subscribing:" namespace view-id parameters