diff options
author | Eric Wong <e@80x24.org> | 2023-10-07 21:24:03 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-10-08 18:54:35 +0000 |
commit | 15067115ba31c6a8e9b36fad885032ac620765d2 (patch) | |
tree | 73136758538b11d0157c32cdf9bdcb6845fe1275 /lib/PublicInbox/LEI.pm | |
parent | 96787c294d7a089d2f72fae3da59c75d257542fc (diff) | |
download | public-inbox-15067115ba31c6a8e9b36fad885032ac620765d2.tar.gz |
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
Diffstat (limited to 'lib/PublicInbox/LEI.pm')
-rw-r--r-- | lib/PublicInbox/LEI.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index f8bcd43d..f00b2465 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; } |