Skip to content

Commit

Permalink
next_tick can be a little faster
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 9, 2015
1 parent 47b67d8 commit afd9f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/Reactor/EV.pm
Expand Up @@ -59,7 +59,7 @@ sub _timer {
$after ||= 0.0001 if $recurring;

my $id = $self->SUPER::_timer(0, 0, $cb);
EV::now_update();
EV::now_update() if $after > 0;
weaken $self;
$self->{timers}{$id}{watcher} = EV::timer(
$after => $after => sub {
Expand Down

0 comments on commit afd9f37

Please sign in to comment.