about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/PublicInbox/ExtSearchIdx.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/ExtSearchIdx.pm b/lib/PublicInbox/ExtSearchIdx.pm
index cb5256a2..f479cf9e 100644
--- a/lib/PublicInbox/ExtSearchIdx.pm
+++ b/lib/PublicInbox/ExtSearchIdx.pm
@@ -908,10 +908,9 @@ ibx_id = ? AND xnum >= ? AND xnum <= ?
                                 for my $num (@$docids) {
                                         $self->{oidx}->eidxq_add($num);
                                 }
-                                return if $sync->{quit};
                         }
+                        return if $sync->{quit};
                 }
-                return if $sync->{quit};
                 next unless scalar keys %x3m;
                 $self->git->async_wait_all; # wait for reindex_unseen
 
@@ -936,6 +935,7 @@ BUG: (non-fatal) $ekey #$xnum $smsg->{blob} still matches (old exp: $exp)
                         for my $i (@$docids) {
                                 _unref_doc($sync, $i, $ibx, $xnum, $bin);
                         }
+                        return if $sync->{quit};
                 }
         }
         defined($hi) and ($hi < $max) and