Skip to content

Commit

Permalink
fixed small bug in Mojo::IOLoop
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 28, 2012
1 parent 9949825 commit 0ed7e27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Mojo/IOLoop.pm
Expand Up @@ -206,7 +206,8 @@ sub _listening {

# Check connection limit
return if $self->{listening};
return unless keys(my $servers = $self->{servers} ||= {});
my $servers = $self->{servers} ||= {};
return unless keys %$servers;
my $i = keys %{$self->{connections}};
my $max = $self->max_connections;
return unless $i < $max;
Expand Down

0 comments on commit 0ed7e27

Please sign in to comment.