From 201ef183c866e77d625ed35e540e172e24c9badf Mon Sep 17 00:00:00 2001 From: xpadev Date: Fri, 26 Apr 2024 09:24:21 +0900 Subject: [PATCH] fix: interrupt process --- electron/queue.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/electron/queue.ts b/electron/queue.ts index 57a93ea..159e061 100644 --- a/electron/queue.ts +++ b/electron/queue.ts @@ -237,7 +237,12 @@ const processOnInterrupt = (queueId: UUID): void => { if (queue.type === "convert") { void convertQueue .then(() => inputStream.end()) - .then(() => interruptConverter()); + .then(() => { + interruptConverter(); + sendMessageToRenderer({ + type: "end", + }); + }); } else if (queue.type === "movie") { if (queue.format.type === "dmc") interruptDMC(); if (queue.format.type === "dms") interruptDMS();