lib/async/http/protocol/http2/stream.rb in async-http-0.40.3 vs lib/async/http/protocol/http2/stream.rb in async-http-0.41.0
- old
+ new
@@ -77,10 +77,10 @@
@body.close
@body = nil
end
# @body.read above might take a while and a stream reset might be received in the mean time.
- unless closed?
+ unless closed? or @connection.closed?
send_data(nil, ::Protocol::HTTP2::END_STREAM)
end
return false
end