Skip to content

Commit

Permalink
avoid multiple error event handlers, just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 30, 2017
1 parent dbc9abd commit 70d8b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop/Delay.pm
Expand Up @@ -82,7 +82,7 @@ sub steps {
$self->ioloop->next_tick($self->begin);

# DEPRECATED!
$self->on(error => sub { });
$self->{deprecated} ||= $self->on(error => sub { });

return $self;
}
Expand Down

0 comments on commit 70d8b0c

Please sign in to comment.