Skip to content

Commit

Permalink
feat(browser): if is cancel not throw parterr
Browse files Browse the repository at this point in the history
  • Loading branch information
binghaiwang committed Mar 23, 2018
1 parent 698a241 commit ef2da46
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/browser/managed_upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,11 @@ proto._resumeMultipart = function* _resumeMultipart(checkpoint, options) {
}
}
} catch (err) {
self.cancel();
err.partNum = partNo;
throw err;
if (!self.isCancel()) {
self.cancel();
err.partNum = partNo;
throw err;
}
}
}
};
Expand Down

0 comments on commit ef2da46

Please sign in to comment.