Skip to content

Commit

Permalink
@uppy/tus: fix resumeFromPreviousUpload race condition (#5616)
Browse files Browse the repository at this point in the history
  • Loading branch information
Murderlon authored Jan 22, 2025
1 parent b8dec76 commit e329bfa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/@uppy/tus/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,10 +472,9 @@ export default class Tus<M extends Meta, B extends Body> extends BasePlugin<
)
upload.resumeFromPreviousUpload(previousUpload)
}
queuedRequest = this.requests.run(qRequest)
})

queuedRequest = this.requests.run(qRequest)

eventManager.onFileRemove(file.id, (targetFileID) => {
queuedRequest.abort()
this.resetUploaderReferences(file.id, { abort: !!upload.url })
Expand Down

0 comments on commit e329bfa

Please sign in to comment.