Skip to content

Commit

Permalink
close socket if client read_loop exits
Browse files Browse the repository at this point in the history
  • Loading branch information
carlhoerberg committed May 10, 2024
1 parent 885be91 commit b4218f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/amqproxy/client.cr
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ module AMQProxy
Log.debug { "Disconnected" }
ensure
@outgoing_frames.close
socket.close rescue nil
close_all_upstream_channels
end

Expand Down

0 comments on commit b4218f0

Please sign in to comment.