]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiQuery.pm
lei: get rid of client {pid} field
[public-inbox.git] / lib / PublicInbox / LeiQuery.pm
index 040c284d5d08075f040cac2392d136dcd8fe82c1..d5376be51f59cd630293f1e3d6b823edc3af9ae3 100644 (file)
@@ -76,7 +76,7 @@ sub lei_q {
        }
        my $j = $opt->{jobs} // scalar(@srcs) > 4 ? 4 : scalar(@srcs);
        $j = 1 if !$opt->{thread};
-       if ($self->{pid}) {
+       if ($self->{sock}) {
                $lxs->wq_workers_start('lei_xsearch', $j, $self->oldset)
                        // $self->wq_workers($j);
        }