lib/async/http/protocol/http2/client.rb in async-http-0.43.0 vs lib/async/http/protocol/http2/client.rb in async-http-0.43.1
- old
+ new
@@ -46,15 +46,15 @@
end
end
# Used by the client to send requests to the remote server.
def call(request)
+ raise ::Protocol::HTTP2::Error, "Connection closed!" if self.closed?
+
@count += 1
response = Response.new(self, next_stream_id)
-
response.send_request(request)
-
response.wait
return response
end
end