1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-07-19 22:46:59 +00:00

Electron: Error fixes

This commit is contained in:
Michael Hollister 2025-05-01 09:44:59 -05:00
parent 1ad346c6b4
commit 71a2c06b8c
2 changed files with 7 additions and 2 deletions

View file

@ -341,7 +341,10 @@ export class Main {
Main.mainWindow.loadFile(path.join(__dirname, 'main/index.html'));
Main.mainWindow.on('closed', () => {
Main.mainWindow = null;
networkWorker.close();
if (!networkWorker.isDestoryed()) {
networkWorker.close();
}
});
Main.mainWindow.maximize();