kill all subprocesses on closing #6

Merged
Anri merged 4 commits from fix-4 into main 2024-05-17 21:24:04 +02:00
Showing only changes of commit 20bf0c1d67 - Show all commits

View file

@ -12,6 +12,8 @@ import {
import path = require("path");
import ffmpegPath = require("ffmpeg-static");
const kill = require("terminate");
let error = false;
const moviesFilter = {
@ -229,8 +231,8 @@ app.whenReady().then(() => {
});
app.on("window-all-closed", () => {
processes.forEach((proc) => {
proc.kill();
processes.forEach((process) => {
kill(process.pid);
});
app.quit();