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:
parent
31d9b85ddd
commit
4336190b5e
@ -4399,7 +4399,9 @@ qq.UploadHandlerController = function(o, namespace) {
|
||||
}
|
||||
)
|
||||
.done(function() {
|
||||
if (handler._getFileState(id)) {
|
||||
handler.clearXhr(id, chunkIdx);
|
||||
}
|
||||
}) ;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user