From cd0566e191772ae6be540c8c067790196a9f73d0 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 17 May 2021 12:00:01 +0100 Subject: [PATCH] progress: Call termprogress::clear() before examining cmd response Signed-off-by: Ian Jackson --- src/mgmtchannel.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mgmtchannel.rs b/src/mgmtchannel.rs index 41583e20..962e78db 100644 --- a/src/mgmtchannel.rs +++ b/src/mgmtchannel.rs @@ -88,6 +88,7 @@ impl MgmtChannel { resp = (&mut rbulk).read_rmp()?; progress.report(&pi); } + progress.clear(); match &resp { Progress(_) => panic!(), Fine | AccountsList{..} | GamesList{..} | -- 2.30.2