about summary refs log tree commit homepage
path: root/lib/PublicInbox/LEI.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-02-02 11:47:01 +0000
committerEric Wong <e@80x24.org>2021-02-03 07:32:44 +0000
commit9ff9755999351a582c857c38e2996b3ab7eb7481 (patch)
tree0528aed5010c52e709f8afba9a99823b75b8c9cb /lib/PublicInbox/LEI.pm
parente6dd3e758902c8d1803e0ef4602a5cb24b5b8403 (diff)
downloadpublic-inbox-9ff9755999351a582c857c38e2996b3ab7eb7481.tar.gz
We won't be reporting progress when output is going to stdout
since it can clutter up the terminal unless stderr != stdout,
which probably isn't worth checking.

We'll also use a more agnostic mset_progress which may
make it easier to support worker-less invocations.
Diffstat (limited to 'lib/PublicInbox/LEI.pm')
-rw-r--r--lib/PublicInbox/LEI.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm
index 44afced3..2c512c5e 100644
--- a/lib/PublicInbox/LEI.pm
+++ b/lib/PublicInbox/LEI.pm
@@ -871,6 +871,7 @@ sub accept_dispatch { # Listener {post_accept} callback
 
 sub dclose {
         my ($self) = @_;
+        delete $self->{-progress};
         for my $f (qw(lxs l2m)) {
                 my $wq = delete $self->{$f} or next;
                 if ($wq->wq_kill) {