--- Coro/Coro.pm 2007/01/12 01:15:03 1.109 +++ Coro/Coro.pm 2007/02/28 11:43:03 1.115 @@ -52,7 +52,7 @@ our $main; # main coroutine our $current; # current coroutine -our $VERSION = '3.3'; +our $VERSION = '3.501'; our @EXPORT = qw(async async_pool cede schedule terminate current unblock_sub); our %EXPORT_TAGS = ( @@ -236,7 +236,7 @@ sub pool_handler { while () { eval { - my ($cb, @arg) = @{ delete $current->{_invoke} }; + my ($cb, @arg) = @{ delete $current->{_invoke} or return }; $cb->(@arg); }; warn $@ if $@;