make sure exe is killed even when user exits the app to prevent dangling process

This commit is contained in:
liamcottle
2024-05-28 04:22:22 +12:00
parent d39dc42dbf
commit baca6d608f

View File

@@ -99,3 +99,8 @@ function quit() {
app.on('window-all-closed', () => {
quit();
});
// make sure child process is killed if app is quiting
app.on('quit', () => {
quit();
});