From d1b65770989619e4fdf7e93d0b67c7cc1cfdc3f8 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 31 Aug 2021 11:21:22 +0000 Subject: [PATCH] lei note-event: always flush changes on daemon exit Because the timer may not fire in time before daemon shutdown. --- lib/PublicInbox/LEI.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index 28fe0c83..520fb519 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -1254,6 +1254,7 @@ sub lazy_start { my (undef, $eof_p) = PublicInbox::PktOp->pair; sub { $exit_code //= shift; + eval 'PublicInbox::LeiNoteEvent::flush_task()'; my $lis = $pil or exit($exit_code); # closing eof_p triggers \&noop wakeup $listener = $eof_p = $pil = $path = undef; -- 2.44.0