mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-12 20:18:09 +00:00
Stopping all local servers when leaving application
This commit is contained in:
3
main.js
3
main.js
@ -59,13 +59,14 @@ function createWindow () {
|
||||
}
|
||||
|
||||
// Emitted when the window is closed.
|
||||
mainWindow.on('closed', function () {
|
||||
mainWindow.on('closed',async function () {
|
||||
// Dereference the window object, usually you would store windows
|
||||
// in an array if your app supports multi windows, this is the time
|
||||
// when you should delete the corresponding element.
|
||||
mainWindow = null
|
||||
});
|
||||
|
||||
|
||||
// forward event to renderer
|
||||
electron.ipcMain.on('local-server-status-events', (event) => {
|
||||
mainWindow.webContents.send('local-server-status-events', event);
|
||||
|
Reference in New Issue
Block a user