--- Coro/Coro.pm 2008/05/31 12:10:55 1.191 +++ Coro/Coro.pm 2008/06/29 00:28:17 1.193 @@ -68,7 +68,7 @@ our $main; # main coroutine our $current; # current coroutine -our $VERSION = 4.742; +our $VERSION = 4.743; 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 $@; + } } }