Skip to content

Commit 2cbe1e9

Browse files
authored
Merge pull request flowjs#298 from JonUK/bug/PausedFileChunkRetries
Stop retrying chunks when file paused
2 parents ff9ccb1 + 4e3b380 commit 2cbe1e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/flow.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@
751751
* @type {string}
752752
*/
753753
this.uniqueIdentifier = (uniqueIdentifier === undefined ? flowObj.generateUniqueIdentifier(file) : uniqueIdentifier);
754-
754+
755755
/**
756756
* Size of Each Chunk
757757
* @type {number}
@@ -1256,7 +1256,7 @@
12561256
delete this.data;
12571257
$.event(status, $.message());
12581258
$.flowObj.uploadNextChunk();
1259-
} else {
1259+
} else if (!$.fileObj.paused) {
12601260
$.event('retry', $.message());
12611261
$.pendingRetry = true;
12621262
$.abort();

0 commit comments

Comments
 (0)