Skip to content

Commit d6c305d

Browse files
committed
fix: max chunk retries loop
1 parent e9cf753 commit d6c305d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/resumable.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ function Resumable(opts) {
9696
target: '/',
9797
testChunks: true,
9898
generateUniqueIdentifier: null,
99-
maxChunkRetries: undefined,
100-
chunkRetryInterval: undefined,
99+
maxChunkRetries: 0,
100+
chunkRetryInterval: null,
101101
permanentErrors: [404, 415, 500, 501]
102102
};
103103

@@ -992,7 +992,7 @@ function Resumable(opts) {
992992
$.abort();
993993
$.retries++;
994994
var retryInterval = $.resumableObj.opts.chunkRetryInterval;
995-
if (retryInterval !== undefined) {
995+
if (retryInterval !== null) {
996996
setTimeout($.send, retryInterval);
997997
} else {
998998
$.send();

0 commit comments

Comments
 (0)