mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-09-21 22:45:20 +00:00
Merge branch 'master' into switch-to-new-socket-lib
This commit is contained in:
@@ -300,6 +300,14 @@ function startAspCoreBackend(electronPort) {
|
||||
apiProcess.stderr.on('data', (data) => {
|
||||
console.log(`stderr: ${data.toString()}`);
|
||||
});
|
||||
|
||||
apiProcess.on('close', (code) => {
|
||||
console.log(`ASP.NET Process exited with code ${code}`);
|
||||
if (code != 0) {
|
||||
console.log(`Will quit Electron, as exit code != 0 (got ${code})`);
|
||||
app.quit();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -331,6 +339,14 @@ function startAspCoreBackendWithWatch(electronPort) {
|
||||
apiProcess.stderr.on('data', (data) => {
|
||||
console.log(`stderr: ${data.toString()}`);
|
||||
});
|
||||
|
||||
apiProcess.on('close', (code) => {
|
||||
console.log(`ASP.NET Process exited with code ${code}`);
|
||||
if (code != 0) {
|
||||
console.log(`Will quit Electron, as exit code != 0 (got ${code})`);
|
||||
app.quit();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user