forked from TrueCloudLab/restic
backup: Always remove the status lines once a backup ends
This commit is contained in:
parent
8d0ba55ecd
commit
d44df9d00d
1 changed files with 2 additions and 0 deletions
|
@ -91,6 +91,8 @@ func (b *Backup) Run(ctx context.Context) error {
|
||||||
t := time.NewTicker(time.Second)
|
t := time.NewTicker(time.Second)
|
||||||
defer t.Stop()
|
defer t.Stop()
|
||||||
defer close(b.closed)
|
defer close(b.closed)
|
||||||
|
// Reset status when finished
|
||||||
|
defer b.term.SetStatus([]string{""})
|
||||||
|
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
|
|
Loading…
Reference in a new issue