lib/httpx/io/unix.rb in httpx-0.3.1 vs lib/httpx/io/unix.rb in httpx-0.4.0
- old
+ new
@@ -34,9 +34,10 @@
@uri.host
end
def connect
return unless closed?
+
begin
if @io.closed?
transition(:idle)
@io = build_socket
end