Skip to content

Commit

Permalink
clear timeout 100 percent
Browse files Browse the repository at this point in the history
  • Loading branch information
eromano committed May 18, 2018
1 parent 03e5efa commit e6630ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -723,8 +723,10 @@ Request.prototype._end = function() {

if (e.total > 0) {
e.percent = e.loaded / e.total * 100;
} else if(e.total = 100){
clearTimeout(self._uploadTimeoutTimer);

if(e.percent === 100) {
clearTimeout(self._uploadTimeoutTimer);
}
}

e.direction = direction;
Expand Down

0 comments on commit e6630ec

Please sign in to comment.