Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
allow Mojo::Reactor::Poll to stop a little faster
  • Loading branch information
kraih committed Feb 17, 2015
1 parent 20c14d5 commit 3fd9ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/Reactor/Poll.pm
Expand Up @@ -27,7 +27,7 @@ sub one_tick {

# Wait for one event
my $i;
until ($i) {
until ($i || !$self->{running}) {

# Stop automatically if there is nothing to watch
return $self->stop unless keys %{$self->{timers}} || keys %{$self->{io}};
Expand Down

0 comments on commit 3fd9ed3

Please sign in to comment.