From a802d1f6864155aeb390b54e659a0909358a1945 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Wed, 29 Jul 2020 00:41:40 -0400 Subject: [PATCH] clear tasks --- lbry/console.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lbry/console.py b/lbry/console.py index dea5cfa58..70cde1510 100644 --- a/lbry/console.py +++ b/lbry/console.py @@ -137,7 +137,11 @@ class Basic(Console): total, last = self.tasks[name] elif total == 0: return - self.tasks[name] = (total, self.maybe_log_progress(name, current, total, last)) + progress_status = (total, self.maybe_log_progress(name, current, total, last)) + if progress_status[1] == 1: + del self.tasks[name] + else: + self.tasks[name] = progress_status class Bar2(Bar):