2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-23 05:12:10 +00:00

backup: Always remove the status lines once a backup ends

This commit is contained in:
Michael Eischer 2020-09-30 15:58:56 +02:00
parent 8d0ba55ecd
commit d44df9d00d

View File

@ -91,6 +91,8 @@ func (b *Backup) Run(ctx context.Context) error {
t := time.NewTicker(time.Second)
defer t.Stop()
defer close(b.closed)
// Reset status when finished
defer b.term.SetStatus([]string{""})
for {
select {