lib/httpx/resolver/resolver.rb in httpx-0.19.2 vs lib/httpx/resolver/resolver.rb in httpx-0.19.3

- old
+ new

@@ -72,9 +72,11 @@ return unless addresses addresses.select! { |addr| addr.family == @family } + return if addresses.empty? + emit_addresses(connection, @family, addresses) end def emit_resolve_error(connection, hostname = connection.origin.host, ex = nil) emit(:error, connection, resolve_error(hostname, ex))