diff --git a/project.clj b/project.clj index 1436e5b..9adedd8 100644 --- a/project.clj +++ b/project.clj @@ -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" diff --git a/src/views/core.clj b/src/views/core.clj index c683ca4..491e10a 100644 --- a/src/views/core.clj +++ b/src/views/core.clj @@ -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