From: Eric Wong Date: Sat, 7 Oct 2023 21:24:03 +0000 (+0000) Subject: lei: do not issue sto->done if socket is inactive X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15067115ba31c6a8e9b36fad885032ac620765d2;p=thirdparty%2Fpublic-inbox.git lei: do not issue sto->done if socket is inactive This fixes attempts to use an undefined value as an ARRAY reference in PublicInbox::IPC::wq_io_do --- diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index f8bcd43d7..f00b2465c 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -1296,7 +1296,7 @@ sub can_stay_alive { # PublicInbox::DS::post_loop_do cb my $lne = delete($cfg->{-lei_note_event}); $lne->wq_close if $lne; my $sto = delete($cfg->{-lei_store}) // next; - eval { $sto->wq_io_do('done') }; + eval { $sto->wq_do('done') if $sto->{-wq_s1} }; warn "E: $@ (dropping store for $cfg->{-f})" if $@; $sto->wq_close; }