Skip to content

Commit 85ed408

Browse files
author
guhao
committed
fix an issue when the last chunk is less than 2056
1 parent ed3e977 commit 85ed408

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qiniu/storage/resume.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ function putReq(config, uploadToken, key, rsStream, rsStreamLen, putExtra,
194194
rsStream.on('end', function() {
195195
//console.log("end");
196196
if (!isEnd) {
197-
mkfileReq(upDomain, uploadToken, fileSize, finishedCtxList, key,
198-
putExtra, callbackFunc);
197+
setTimeout(() => {mkfileReq(upDomain, uploadToken, fileSize, finishedCtxList, key,
198+
putExtra, callbackFunc)}, 1000);
199199
}
200200
});
201201
}

0 commit comments

Comments
 (0)