Skip to content

Commit

Permalink
fix: interrupt process
Browse files Browse the repository at this point in the history
  • Loading branch information
xpadev-net committed Apr 26, 2024
1 parent 5febe30 commit 201ef18
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion electron/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 201ef18

Please sign in to comment.