Skip to content

Commit

Permalink
@uppy/tus: avoid crashing when Tus client reports an error (#4019)
Browse files Browse the repository at this point in the history
Avoid crashing when Tus client reports an error before any request is queued.
  • Loading branch information
aduh95 committed Aug 22, 2022
1 parent ef7cbea commit 97c6507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@uppy/tus/src/index.js
Expand Up @@ -256,7 +256,7 @@ export default class Tus extends BasePlugin {
}

this.resetUploaderReferences(file.id)
queuedRequest.abort()
queuedRequest?.abort()

this.uppy.emit('upload-error', file, err)

Expand Down

0 comments on commit 97c6507

Please sign in to comment.