mirror of
https://github.com/restic/restic.git
synced 2025-12-15 18:02:22 +00:00
Improve command shutdown on context cancellation
This commit is contained in:
@@ -320,6 +320,9 @@ func (mi *MasterIndex) Save(ctx context.Context, repo restic.Repository, exclude
|
||||
newIndex = NewIndex()
|
||||
}
|
||||
}
|
||||
if wgCtx.Err() != nil {
|
||||
return wgCtx.Err()
|
||||
}
|
||||
}
|
||||
|
||||
err := newIndex.AddToSupersedes(extraObsolete...)
|
||||
|
||||
Reference in New Issue
Block a user