Skip to content

Commit

Permalink
Merge pull request #99 from xpadev-net/fix/interrupt-process
Browse files Browse the repository at this point in the history
fix: interrupt process
  • Loading branch information
xpadev-net authored Apr 26, 2024
2 parents 5febe30 + 201ef18 commit bf7f2a7
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 bf7f2a7

Please sign in to comment.