Don't filter context cancel errors

The caller thinks this means it succeeded, when it fact it was cancelled and it should interpret that appropriately.
This commit is contained in:
Matt Joiner 2020-06-19 11:41:26 +10:00
parent 12ace95493
commit e81d8890dd
1 changed files with 0 additions and 3 deletions

View File

@ -1205,9 +1205,6 @@ func useTorrentSource(source string, t *Torrent) error {
req = req.WithContext(ctx)
resp, err := http.DefaultClient.Do(req)
if err != nil {
if ctx.Err() != nil {
return nil
}
return err
}
mi, err := metainfo.Load(resp.Body)