Skip to content

Commit

Permalink
Call abort() on WriteableStream instead of
Browse files Browse the repository at this point in the history
`WriteableStreamDefaultReader`
  • Loading branch information
dlarocque committed Aug 9, 2024
1 parent 4e16c41 commit 01854cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/storage/src/reference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export function getStreamInternal(
ref.storage
.makeRequestWithTokens(requestInfo, newStreamConnection)
.then(readableStream => readableStream.pipeThrough(result))
.catch(err => result.writable.getWriter().abort(err));
.catch(err => result.writable.abort(err));

return result.readable;
}
Expand Down

0 comments on commit 01854cc

Please sign in to comment.