no deadlockear
This commit is contained in:
parent
cb930496c9
commit
847cd28740
1 changed files with 1 additions and 0 deletions
1
main.go
1
main.go
|
@ -52,6 +52,7 @@ func (d *Downloader) download(url string, output string, doneChan chan error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if res.StatusCode != http.StatusOK {
|
if res.StatusCode != http.StatusOK {
|
||||||
|
doneChan <- nil
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
f, err := os.Create(output)
|
f, err := os.Create(output)
|
||||||
|
|
Loading…
Reference in a new issue