Skip to content

Commit 360b016

Browse files
committed
Ensure the framer is always closed.
1 parent 181b0a0 commit 360b016

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/protocol/http2/connection.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def close(error = nil)
101101
@streams.each_value{|stream| stream.close(error)}
102102
@streams.clear
103103

104+
ensure
104105
if @framer
105106
@framer.close
106107
@framer = nil

0 commit comments

Comments
 (0)