Skip to content

Commit

Permalink
fix deliver set/release order
Browse files Browse the repository at this point in the history
  • Loading branch information
richhickey committed Jul 24, 2009
1 parent fe6eddf commit 3e60eff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clj/clojure/core.clj
Expand Up @@ -4305,8 +4305,8 @@
(invoke [x]
(locking d
(if (pos? (.getCount d))
(do (.countDown d)
(reset! v x)
(do (reset! v x)
(.countDown d)
this)
(throw (IllegalStateException. "Multiple deliver calls to a promise"))))))))

Expand Down

0 comments on commit 3e60eff

Please sign in to comment.