Skip to content

Commit

Permalink
fixed small Mojo::IOLoop bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 24, 2011
1 parent 4560e5a commit b2c8b99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Mojo/IOLoop.pm
Expand Up @@ -401,13 +401,12 @@ sub _not_listening {
my $self = shift;

# Check if we are listening
return unless my $cb = $self->on_unlock;
return unless delete $self->{listening};
return unless my $cb = $self->on_unlock;
$self->$cb();

# Stop listening
$_->pause for values %{$self->{servers} || {}};
delete $self->{listening};
}

1;
Expand Down

0 comments on commit b2c8b99

Please sign in to comment.