--- cvsroot/Coro/Coro.pm 2007/01/12 01:15:03 1.109 +++ cvsroot/Coro/Coro.pm 2007/03/07 13:11:10 1.117 @@ -52,7 +52,7 @@ our $main; # main coroutine our $current; # current coroutine -our $VERSION = '3.3'; +our $VERSION = '3.52'; 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 $@;