Skip to content

Commit

Permalink
Better #35 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
circlespainter committed Feb 14, 2015
1 parent b031936 commit bd9dfc4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/clojure/co/paralleluniverse/pulsar/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -506,9 +506,10 @@
clojure.lang.IFn
(invoke
[this x]
(if (.isDone dv)
nil
(do (.set dv x) this))))))
(try
(.set dv x)
this
(catch IllegalStateException _ nil))))))
([]
(promise nil)))

Expand Down

0 comments on commit bd9dfc4

Please sign in to comment.