bade11c
Branches > main > bade11c > files / src / net / bowmap / server
Close client frame channels when closing the client
Commit: bade11c00afdc0fa014b7f30000d9a1721419dc1
Parent: 5080ff4
1 changed file:
src/net/bowmap/transport/connection.clj view file
@@ -15,7 +15,10 @@ clientbound-frames (chan 64) input-stream (Socket/.getInputStream socket) output-stream (Socket/.getOutputStream socket)- conn {::close-fn (fn [] (Socket/.close socket))+ conn {::close-fn (fn []+ (Socket/.close socket)+ (close! serverbound-frames)+ (close! clientbound-frames)) ::serverbound-frames serverbound-frames ::clientbound-frames clientbound-frames}] (io-thread