Github user dblotsky commented on a diff in the pull request:
https://github.com/apache/cordova-plugin-file-transfer/pull/118#discussion_r45928408
--- Diff: src/windows/FileTransferProxy.js ---
@@ -116,9 +118,13 @@ exec(win, fail, 'FileTransfer', 'upload',
// check if download isn't already cancelled
var uploadOp = fileTransferOps[uploadId];
- if (uploadOp && uploadOp.state ===
FileTransferOperation.CANCELLED) {
+ if (uploadOp && uploadOp.state ===
FileTransferOperation.CANCELLED || abortedOpIds.indexOf(uploadId) !== -1) {
--- End diff --
This condition is hard to read. Please encapsulate this logic in a
descriptive function.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]