From: Ian Jackson Date: Mon, 17 May 2021 11:00:01 +0000 (+0100) Subject: progress: Call termprogress::clear() before examining cmd response X-Git-Tag: otter-0.6.0~207 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=cd0566e191772ae6be540c8c067790196a9f73d0;p=otter.git progress: Call termprogress::clear() before examining cmd response Signed-off-by: Ian Jackson --- 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{..} |