1
0
mirror of https://github.com/ascribe/onion.git synced 2025-01-03 18:35:09 +01:00

Fix FineUploader to handle cancellations in the onError() callback

Calling cancel() in the onError() callback would cause an error as the
upload handler tries to clear the upload’s xhr requests after cancel
already clears them.
This commit is contained in:
Brett Sun 2015-11-13 12:10:51 +01:00
parent 31d9b85ddd
commit 4336190b5e

View File

@ -4399,7 +4399,9 @@ qq.UploadHandlerController = function(o, namespace) {
}
)
.done(function() {
handler.clearXhr(id, chunkIdx);
if (handler._getFileState(id)) {
handler.clearXhr(id, chunkIdx);
}
}) ;
}
}