Avoid double closing of export progress channel

This commit is contained in:
Philipp Wolfer 2023-11-23 22:45:31 +01:00
parent e8fdfb95a6
commit fb285930c0
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
9 changed files with 2 additions and 11 deletions

View file

@ -77,6 +77,7 @@ var listensCmd = &cobra.Command{
resultChan := make(chan models.ImportResult)
go backends.ProcessListensImports(importBackend, listensChan, resultChan, importProgress)
result := <-resultChan
close(exportProgress)
wg.Wait()
progress.Wait()
if result.Error != nil {

View file

@ -77,6 +77,7 @@ var lovesCmd = &cobra.Command{
resultChan := make(chan models.ImportResult)
go backends.ProcessLovesImports(importBackend, lovesChan, resultChan, importProgress)
result := <-resultChan
close(exportProgress)
wg.Wait()
progress.Wait()
if result.Error != nil {