--- Coro/Coro.pm 2008/05/30 21:34:52 1.190 +++ Coro/Coro.pm 2008/07/08 20:08:40 1.194 @@ -68,7 +68,7 @@ our $main; # main coroutine our $current; # current coroutine -our $VERSION = 4.741; +our $VERSION = 4.744; our @EXPORT = qw(async async_pool cede schedule terminate current unblock_sub); our %EXPORT_TAGS = ( @@ -268,8 +268,10 @@ } }; - last if $@ eq "\3async_pool terminate\2\n"; - warn $@ if $@; + if ($@) { + last if $@ eq "\3async_pool terminate\2\n"; + warn $@; + } } }