Skip to content

Commit

Permalink
fixed support for handles
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 4, 2014
1 parent 4eecfcd commit 3eebb2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop/Client.pm
Expand Up @@ -44,7 +44,7 @@ sub connect {
# Blocking name resolution
my $address = $args->{socks_address} || ($args->{address} ||= 'localhost');
return $reactor->next_tick(sub { $self && $self->_connect($args) })
unless DNS && $address ne 'localhost';
unless DNS && $address ne 'localhost' && !$args->{handle};

# Non-blocking name resolution
my $handle = $self->{dns}
Expand Down

0 comments on commit 3eebb2e

Please sign in to comment.