about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-02-02 11:47:00 +0000
committerEric Wong <e@80x24.org>2021-02-03 07:32:43 +0000
commite6dd3e758902c8d1803e0ef4602a5cb24b5b8403 (patch)
treee508726f2812a56925c28d0bd3bc94cb03d8b188 /lib
parent3620882c340d85f955ced0eb4ae0c89df010956b (diff)
downloadpublic-inbox-e6dd3e758902c8d1803e0ef4602a5cb24b5b8403.tar.gz
We may reuse these objects in the non-worker code paths.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/LeiOverview.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/PublicInbox/LeiOverview.pm b/lib/PublicInbox/LeiOverview.pm
index 31cc67f1..ff15d295 100644
--- a/lib/PublicInbox/LeiOverview.pm
+++ b/lib/PublicInbox/LeiOverview.pm
@@ -147,10 +147,8 @@ sub _unbless_smsg {
 
 sub ovv_atexit_child {
         my ($self, $lei) = @_;
-        if (my $l2m = delete $lei->{l2m}) {
-                # gracefully stop lei2mail processes after all
-                # ->write_mail work is complete
-                delete $l2m->{-wq_s1};
+        if (my $l2m = $lei->{l2m}) {
+                # wait for ->write_mail work we submitted to lei2mail
                 if (my $rd = delete $l2m->{each_smsg_done}) {
                         read($rd, my $buf, 1); # wait for EOF
                 }