backup: In case of error also Wait() for terminal goroutine

This prevents a race condition where the final summary message can get lost.
This commit is contained in:
Juergen Hoetzel
2021-02-25 21:43:08 +01:00
committed by Michael Eischer
parent d686fa25de
commit 18fccb5995
2 changed files with 11 additions and 4 deletions

View File

@@ -0,0 +1,7 @@
Bugfix: In case of error also Wait() for terminal goroutine
This prevents a race condition where the final summary message is
lost. When using --json output it happened from time to time that the
summary output was missing.
https://github.com/restic/restic/pull/3305