Skip to content

Commit

Permalink
Fix reader management (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcw authored Apr 19, 2022
1 parent b3be8c6 commit 4e5ed90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/legacy/file-save.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ async function streamToBlob(stream, type) {
});

const res = new Response(pumpedStream);
const blob = await res.blob();
reader.releaseLock();
return new Blob([await res.blob()], { type });
return new Blob([blob], { type });
}

0 comments on commit 4e5ed90

Please sign in to comment.