mirror of
https://github.com/Xpl0itU/WiiUDownloader.git
synced 2025-05-29 22:45:17 -04:00
Close ticker
This commit is contained in:
parent
d07e0e7fea
commit
0e58e069cb
2 changed files with 7 additions and 0 deletions
|
@ -82,6 +82,7 @@ func downloadFileWithSemaphore(ctx context.Context, progressReporter ProgressRep
|
|||
if err != nil {
|
||||
file.Close()
|
||||
resp.Body.Close()
|
||||
writerProgress.Close()
|
||||
if doRetries && attempt < maxRetries && !progressReporter.Cancelled() {
|
||||
time.Sleep(retryDelay)
|
||||
continue
|
||||
|
@ -90,6 +91,7 @@ func downloadFileWithSemaphore(ctx context.Context, progressReporter ProgressRep
|
|||
}
|
||||
file.Close()
|
||||
resp.Body.Close()
|
||||
writerProgress.Close()
|
||||
break
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue