Skip to content

Commit

Permalink
make tests pass again
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 4, 2014
1 parent bf9e5bf commit a1ac74b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/IOLoop/Client.pm
Expand Up @@ -47,8 +47,8 @@ sub connect {
sub { $self->emit(error => 'Connect timeout') });

# Non-blocking resolver
if (DNS) {
my $address = $args->{socks_address} || ($args->{address} ||= 'localhost');
my $address = $args->{socks_address} || ($args->{address} ||= 'localhost');
if (DNS && $address ne 'localhost') {
my $handle = $DNS->getaddrinfo($address, undef, {});
$reactor->io(
$handle => sub {
Expand Down

0 comments on commit a1ac74b

Please sign in to comment.