This fixes attempts to use an undefined value as an ARRAY reference
in PublicInbox::IPC::wq_io_do
---
 lib/PublicInbox/LEI.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
                }

Reply via email to