mirror of
https://github.com/restic/restic.git
synced 2026-01-19 05:13:11 -05:00
Merge pull request #2603 from greatroar/restorer-waitgroup
Fix unsafe sync.WaitGroup usage in restorer.fileRestorer
This commit is contained in:
commit
65d3fb6b33
1 changed files with 1 additions and 1 deletions
|
|
@ -152,8 +152,8 @@ func (r *fileRestorer) restoreFiles(ctx context.Context) error {
|
|||
}
|
||||
}
|
||||
for i := 0; i < workerCount; i++ {
|
||||
go worker()
|
||||
wg.Add(1)
|
||||
go worker()
|
||||
}
|
||||
|
||||
// the main restore loop
|
||||
|
|
|
|||
Loading…
Reference in a new issue