diff options
Diffstat (limited to 'rhimport/importer.go')
-rw-r--r-- | rhimport/importer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rhimport/importer.go b/rhimport/importer.go index 37bbc01..d7365a5 100644 --- a/rhimport/importer.go +++ b/rhimport/importer.go @@ -305,7 +305,7 @@ func importAudio(ctx *Context, res *Result) (err error) { easy.Setopt(curl.OPT_NOPROGRESS, false) easy.Setopt(curl.OPT_PROGRESSFUNCTION, func(dltotal, dlnow, ultotal, ulnow float64, userdata interface{}) bool { - if ctx.Cancel != nil && len(ctx.Cancel) > 0 { + if ctx.isCanceled() { res.ResponseCode = http.StatusNoContent res.ErrorString = "canceled" return false |