]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Git.pm
git_async_cat: remove circular reference
[public-inbox.git] / lib / PublicInbox / Git.pm
index a55c48d5f523b5a9c0f43540abf0a24fa8545d04..776e483291b61fc639aa6b4aac5a4b66ce8c350a 100644 (file)
@@ -295,9 +295,7 @@ sub qx {
 sub cleanup {
        my ($self) = @_;
        local $in_cleanup = 1;
-       if (my $ac = $self->{async_cat}) {
-               $ac->close; # PublicInbox::GitAsyncCat::close -> EPOLL_CTL_DEL
-       }
+       delete $self->{async_cat};
        cat_async_wait($self);
        _destroy($self, qw(cat_rbuf in out pid));
        _destroy($self, qw(chk_rbuf in_c out_c pid_c err_c));