]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei_to_mail: quiet down abort messages
authorEric Wong <e@80x24.org>
Sat, 16 Oct 2021 01:01:01 +0000 (01:01 +0000)
committerEric Wong <e@80x24.org>
Sat, 16 Oct 2021 01:42:54 +0000 (01:42 +0000)
We don't need to flood the terminal with "W: $oid is  (!= blob)\n"
messages when somebody nukes a git cat-file process from under
us.

lib/PublicInbox/LeiToMail.pm

index 76e103c7c2351638902bac42cd6290488e9e761d..ca4e92de48b77c02a0dfd98c2b1483e8e5a2290b 100644 (file)
@@ -132,6 +132,7 @@ sub eml2mboxcl2 {
 
 sub git_to_mail { # git->cat_async callback
        my ($bref, $oid, $type, $size, $arg) = @_;
+       $type // return; # called by git->async_abort
        my ($write_cb, $smsg) = @$arg;
        if ($type eq 'missing' && $smsg->{-lms_ro}) {
                if ($bref = $smsg->{-lms_ro}->local_blob($oid, 1)) {