1
0
Fork 0
mirror of https://git.sr.ht/~phw/scotty synced 2025-04-29 13:27:03 +02:00

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 {