Rework #6

Merged
monoid merged 38 commits from dev into main 2024-04-17 01:45:37 +09:00
Showing only changes of commit 0f233183ac - Show all commits

View File

@ -94,11 +94,15 @@ async function renderZipImage(ctx: Context, path: string, page: number) {
},
}));
nodeReadableStream.on("error", (err) => {
console.error(err);
releaseZip(path);
console.error("readalbe stream error",err);
setTimeout(()=>{
releaseZip(path)
},100);
});
nodeReadableStream.on("close", () => {
setTimeout(()=>{
releaseZip(path);
},100);
});
ctx.body = nodeReadableStream;