mainWindow.close - be ready for null mainWindow

pull/272/head
Scott Nonnenberg 6 years ago
parent 2ce86af093
commit 2624a6af88

@ -369,7 +369,9 @@ function createWindow() {
}
await requestShutdown();
mainWindow.readyForShutdown = true;
if (mainWindow) {
mainWindow.readyForShutdown = true;
}
app.quit();
});

Loading…
Cancel
Save