Exit net core backend on electron quit

This change explicitly cleans up the .net core http process when the
hosting electron application quits.  On macos, the child process was
sometimes left running depending on how the application was exited.

GH-346
This commit is contained in:
Dave Ferguson
2020-05-17 21:49:21 -04:00
parent 0573e92ed5
commit b027ca7c66

View File

@@ -62,6 +62,11 @@ app.on('ready', () => {
});
app.on('quit', async (event, exitCode) => {
await server.close();
apiProcess.kill();
});
function isSplashScreenEnabled() {
if (manifestJsonFile.hasOwnProperty('splashscreen')) {
if (manifestJsonFile.splashscreen.hasOwnProperty('imageFile')) {