Skip to content

Commit

Permalink
handle last ch closed
Browse files Browse the repository at this point in the history
  • Loading branch information
richhickey committed May 7, 2014
1 parent 7632070 commit 8864214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/clojure/clojure/core/async.clj
Expand Up @@ -677,7 +677,7 @@
(reset! dctr (count chs))
(doseq [c chs]
(when-not (put! c val done)
(swap! dctr dec)
(done nil)
(untap* m c)))
;;wait for all
(when (seq chs)
Expand Down

0 comments on commit 8864214

Please sign in to comment.