Skip to content

Commit

Permalink
容错
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed Apr 10, 2018
1 parent ca65174 commit ce3b25e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion dist/cos-js-sdk-v5.js
Original file line number Diff line number Diff line change
Expand Up @@ -8819,7 +8819,11 @@ var retry = function (times, iterator, callback) {
}
});
};
next(1);
if (times < 1) {
callback();
} else {
next(1);
}
};

var async = {
Expand Down
2 changes: 1 addition & 1 deletion dist/cos-js-sdk-v5.min.js

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion lib/async.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ var retry = function (times, iterator, callback) {
}
});
};
next(1);
if (times < 1) {
callback();
} else {
next(1);
}
};

var async = {
Expand Down

0 comments on commit ce3b25e

Please sign in to comment.