mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-04-29 01:22:00 +00:00
Fix exit method
This commit is contained in:
@@ -305,7 +305,7 @@ function startAspCoreBackend(electronPort) {
|
||||
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();
|
||||
app.exit(code);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -344,7 +344,7 @@ function startAspCoreBackendWithWatch(electronPort) {
|
||||
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();
|
||||
app.exit(code);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user