about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/PublicInbox/Git.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Git.pm b/lib/PublicInbox/Git.pm
index 54ceaf0b..b2ae75c8 100644
--- a/lib/PublicInbox/Git.pm
+++ b/lib/PublicInbox/Git.pm
@@ -1,4 +1,4 @@
-# Copyright (C) 2014-2021 all contributors <meta@public-inbox.org>
+# Copyright (C) all contributors <meta@public-inbox.org>
 # License: GPLv2 or later <https://www.gnu.org/licenses/gpl-2.0.txt>
 #
 # Used to read files from a git repository without excessive forking.
@@ -349,7 +349,7 @@ sub async_abort ($) {
         while (scalar(@{$self->{inflight_c} // []}) ||
                         scalar(@{$self->{inflight} // []})) {
                 for my $c ('', '_c') {
-                        my $q = $self->{"inflight$c"};
+                        my $q = $self->{"inflight$c"} or next;
                         while (@$q) {
                                 my ($req, $cb, $arg) = splice(@$q, 0, 3);
                                 $req = $$req if ref($req);