lib/httpx/connection/http2.rb in httpx-0.22.2 vs lib/httpx/connection/http2.rb in httpx-0.22.3
- old
+ new
@@ -363,10 +363,10 @@
ex = Error.new(0, error)
end
ex.set_backtrace(caller)
handle_error(ex)
end
- return unless is_connection_closed && @streams.size.zero?
+ return unless is_connection_closed && @streams.empty?
emit(:close, is_connection_closed)
end
def on_frame_sent(frame)