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:
parent
1ad346c6b4
commit
71a2c06b8c
2 changed files with 7 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue