Close export progress in export goroutine

Fixes crash in case of importer exiting prematurely
This commit is contained in:
Philipp Wolfer 2024-01-15 08:21:38 +01:00
parent 1cea9bd301
commit 84443d0e69
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
3 changed files with 3 additions and 1 deletions

View file

@ -126,7 +126,6 @@ func (c *TransferCmd[E, I, R]) Transfer(exp backends.ExportProcessor[R], imp bac
if result.LastTimestamp.Unix() < timestamp.Unix() {
result.LastTimestamp = timestamp
}
close(exportProgress)
wg.Wait()
progress.Wait()
if result.Error != nil {