HMxcImage: cancel media retrieval on destruction

This commit is contained in:
miruka
2020-03-13 02:52:38 -04:00
parent 7e5896f52b
commit 630e011cfd
2 changed files with 11 additions and 7 deletions

View File

@@ -27,10 +27,7 @@ QtObject {
const type = py.getattr(py.getattr(error, "__class__"), "__name__")
const args = py.getattr(error, "args")
if (type === "CancelledError") {
console.warn(`python: cancelled: ${uuid}`)
return
}
if (type === "CancelledError") return
if (onError) {
onError(type, args, error, traceback)