diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2015-06-07 14:37:43 +0200 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2015-06-07 14:37:43 +0200 |
commit | ad76cc8ae4fee79962ea2be7f170d3b43f63a7c7 (patch) | |
tree | f81c74f75429e829714029850f89ee4c7f13aa39 /lib/IO/Async/Timer/Periodic.pm | |
parent | 64c71ff58dc2df52647d2afa92266c1f9beac7e3 (diff) |
Imported Upstream version 0.67
Diffstat (limited to 'lib/IO/Async/Timer/Periodic.pm')
-rw-r--r-- | lib/IO/Async/Timer/Periodic.pm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/IO/Async/Timer/Periodic.pm b/lib/IO/Async/Timer/Periodic.pm index 84da8d9..f99a43c 100644 --- a/lib/IO/Async/Timer/Periodic.pm +++ b/lib/IO/Async/Timer/Periodic.pm @@ -1,7 +1,7 @@ # You may distribute under the terms of either the GNU General Public License # or the Artistic License (the same terms as Perl itself) # -# (C) Paul Evans, 2009-2012 -- leonerd@leonerd.org.uk +# (C) Paul Evans, 2009-2015 -- leonerd@leonerd.org.uk package IO::Async::Timer::Periodic; @@ -9,7 +9,7 @@ use strict; use warnings; use base qw( IO::Async::Timer ); -our $VERSION = '0.64'; +our $VERSION = '0.67'; use Carp; @@ -223,10 +223,13 @@ sub _make_cb undef $self->{id}; - $self->invoke_event( on_tick => ); + my $ok = eval { $self->invoke_event( on_tick => ); 1 } or + my $e = $@; # detect ->stop $self->start if defined $self->{next_time}; + + die $e if !$ok; } ); } |