no deadlockear

This commit is contained in:
Cat /dev/Nulo 2023-01-21 00:53:45 -03:00
parent cb930496c9
commit 847cd28740

View file

@ -52,6 +52,7 @@ func (d *Downloader) download(url string, output string, doneChan chan error) {
return
}
if res.StatusCode != http.StatusOK {
doneChan <- nil
return
}
f, err := os.Create(output)