Skip to content

Commit e05f40d

Browse files
author
Raphaël Droz
committed
async-read: readFileFn kept upload retries from happening
1 parent 5591263 commit e05f40d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/FlowChunk.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,8 @@ export default class FlowChunk {
388388
}
389389
}
390390

391-
if (asyncRead) {
391+
// If chunk already read (state = 2) and pendingRetry is true, then only the upload must be retried.
392+
if (asyncRead && !this.pendingRetry) {
392393
await this.readStreamChunk();
393394
return;
394395
}

0 commit comments

Comments
 (0)