From 9ff9755999351a582c857c38e2996b3ab7eb7481 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 2 Feb 2021 11:47:01 +0000 Subject: lei q: tidy up progress reporting 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. --- lib/PublicInbox/LEI.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/PublicInbox/LEI.pm') 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) { -- cgit v1.2.3-24-ge0c7