Skip to content

Commit

Permalink
avoid warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Mar 3, 2016
1 parent 85504fa commit 89e7787
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop/Client.pm
Expand Up @@ -66,7 +66,7 @@ sub connect {
sub _cleanup {
my $self = shift;
$NDN->timedout($self->{dns}) if $self->{dns};
my $reactor = $self->reactor;
return unless my $reactor = $self->reactor;
$self->{$_} && $reactor->remove(delete $self->{$_}) for qw(dns timer handle);
return $self;
}
Expand Down
2 changes: 1 addition & 1 deletion t/mojo/daemon.t
Expand Up @@ -306,7 +306,7 @@ $loop->start;
ok $accepting[0], 'accepting connections';
ok !$accepting[1], 'connection limit reached';

# Multi-accept
# Multi-accept and connection limit
$loop = Mojo::IOLoop->new;
$daemon = Mojo::Server::Daemon->new(
app => $app,
Expand Down

0 comments on commit 89e7787

Please sign in to comment.