--- AnyEvent/lib/AnyEvent.pm 2008/05/11 18:08:36 1.118 +++ AnyEvent/lib/AnyEvent.pm 2008/05/17 19:39:33 1.119 @@ -732,12 +732,12 @@ push @post_detect, $cb; defined wantarray - ? bless \$cb, "AnyEvent::Util::Guard" + ? bless \$cb, "AnyEvent::Util::PostDetect" : () } } -sub AnyEvent::Util::Guard::DESTROY { +sub AnyEvent::Util::PostDetect::DESTROY { @post_detect = grep $_ != ${$_[0]}, @post_detect; }