mirror of
https://git.sr.ht/~phw/scotty
synced 2025-05-07 08:57:06 +02:00
Avoid double closing of export progress channel
This commit is contained in:
parent
e8fdfb95a6
commit
fb285930c0
9 changed files with 2 additions and 11 deletions
|
@ -71,7 +71,6 @@ func (b *DeezerApiBackend) ExportListens(oldestTimestamp time.Time, results chan
|
|||
perPage := MaxItemsPerGet
|
||||
|
||||
defer close(results)
|
||||
defer close(progress)
|
||||
|
||||
p := models.Progress{Total: int64(perPage)}
|
||||
var totalCount int
|
||||
|
@ -139,7 +138,6 @@ func (b *DeezerApiBackend) ExportLoves(oldestTimestamp time.Time, results chan m
|
|||
perPage := MaxItemsPerGet
|
||||
|
||||
defer close(results)
|
||||
defer close(progress)
|
||||
|
||||
p := models.Progress{Total: int64(perPage)}
|
||||
var totalCount int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue