Skip to content

Commit

Permalink
HTML5: do not dive into readyState checking conditional, if upload is…
Browse files Browse the repository at this point in the history
… stopped (e.g. was canceled)
  • Loading branch information
jayarjo committed Jan 6, 2012
1 parent 61a1775 commit 746fbe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/javascript/plupload.html5.js
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,8 @@

xhr.onreadystatechange = function() {
var httpStatus, chunkArgs;

if (xhr.readyState == 4) {
if (xhr.readyState == 4 && up.state !== plupload.STOPPED) {
// Getting the HTTP status might fail on some Gecko versions
try {
httpStatus = xhr.status;
Expand Down

0 comments on commit 746fbe4

Please sign in to comment.