chore: attempt to kill Nitro subprocesses (#484)
This commit is contained in:
parent
fce61f5dda
commit
1439742544
@ -43,6 +43,11 @@ app.on("window-all-closed", () => {
|
|||||||
app.quit();
|
app.quit();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app.on("quit", () => {
|
||||||
|
dispose(requiredModules);
|
||||||
|
app.quit();
|
||||||
|
});
|
||||||
|
|
||||||
ipcMain.handle("setNativeThemeLight", () => {
|
ipcMain.handle("setNativeThemeLight", () => {
|
||||||
nativeTheme.themeSource = "light";
|
nativeTheme.themeSource = "light";
|
||||||
});
|
});
|
||||||
|
|||||||
@ -183,7 +183,14 @@ const registerListener = () => {
|
|||||||
events.on(EventName.OnNewMessageRequest, handleMessageRequest);
|
events.on(EventName.OnNewMessageRequest, handleMessageRequest);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const killSubprocess = () => {
|
||||||
|
invokePluginFunc(MODULE_PATH, "killSubprocess");
|
||||||
|
};
|
||||||
|
|
||||||
const onStart = async () => {
|
const onStart = async () => {
|
||||||
|
// Try killing any existing subprocesses related to Nitro
|
||||||
|
killSubprocess();
|
||||||
|
|
||||||
registerListener();
|
registerListener();
|
||||||
};
|
};
|
||||||
// Register all the above functions and objects with the relevant extension points
|
// Register all the above functions and objects with the relevant extension points
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user