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) => { nodeReadableStream.on("error", (err) => {
console.error(err); console.error("readalbe stream error",err);
releaseZip(path); setTimeout(()=>{
releaseZip(path)
},100);
}); });
nodeReadableStream.on("close", () => { nodeReadableStream.on("close", () => {
setTimeout(()=>{
releaseZip(path); releaseZip(path);
},100);
}); });
ctx.body = nodeReadableStream; ctx.body = nodeReadableStream;