diff options
author | Eric Wong <e@80x24.org> | 2023-10-01 22:34:44 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-10-01 22:41:51 +0000 |
commit | 1ff2be2d0df428f27022487d7ac4941b7a592168 (patch) | |
tree | c24036b688038c4ae43c0230875240d5336ea437 /lib/PublicInbox/LeiToMail.pm | |
parent | a6fe8448912719fcf453d112ae715865fe7dca12 (diff) | |
download | public-inbox-1ff2be2d0df428f27022487d7ac4941b7a592168.tar.gz |
nr_write may be undef if nothing was written due to dedupe, but with seen messages.
Diffstat (limited to 'lib/PublicInbox/LeiToMail.pm')
-rw-r--r-- | lib/PublicInbox/LeiToMail.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiToMail.pm b/lib/PublicInbox/LeiToMail.pm index 98d0ac19..b9f28ee4 100644 --- a/lib/PublicInbox/LeiToMail.pm +++ b/lib/PublicInbox/LeiToMail.pm @@ -798,7 +798,7 @@ sub wq_atexit_child { $lei->{ale}->git->async_wait_all; my ($nr_w, $nr_s) = delete(@$lei{qw(-nr_write -nr_seen)}); delete $self->{wcb}; - $nr_s or return; + (($nr_w //= 0) + ($nr_s //= 0)) or return; return if $lei->{early_mua} || !$lei->{-progress} || !$lei->{pkt_op_p}; $lei->{pkt_op_p}->pkt_do('l2m_progress', $nr_w, $nr_s); } |