lib/httpx/resolver/system.rb in httpx-0.19.4 vs lib/httpx/resolver/system.rb in httpx-0.19.5
- old
+ new
@@ -80,9 +80,11 @@
def timeout
return unless @queries.empty?
_, connection = @queries.first
+ return unless connection
+
@timeouts[connection.origin.host].first
end
def <<(connection)
@connections << connection