Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix close-connection

  • Loading branch information...
commit 0c0b51991a77f5049f93a6a272e61585d16c3d26 1 parent 87505b6
@ztellman authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/lamina/connections.clj
View
6 src/lamina/connections.clj
@@ -80,9 +80,9 @@
(let [latch (atom false)
connection (delay (connection-loop name connection-generator latch on-connected))
reset-fn (fn []
- (when-let [ch @@connection]
- (when (channel? ch)
- (close ch))))
+ (run-pipeline @@connection
+ #(when (channel? %)
+ (close %))))
close-fn (fn []
(reset! latch true)
(reset-fn))]
Please sign in to comment.
Something went wrong with that request. Please try again.