lib/async/http/protocol/http1/connection.rb in async-http-0.41.0 vs lib/async/http/protocol/http1/connection.rb in async-http-0.41.1

- old
+ new

@@ -58,21 +58,20 @@ 1 end # Can we use this connection to make requests? def connected? - @stream.connected? + @stream&.connected? end def reusable? - !@stream.closed? + @stream && !@stream.closed? # !(self.closed? || @stream.closed?) end def close Async.logger.debug(self) {"Closing connection"} - - @stream.close + super end end end end end