diff --git a/electron/src/main/updater.js b/electron/src/main/updater.js index aa4ed7f..a619706 100644 --- a/electron/src/main/updater.js +++ b/electron/src/main/updater.js @@ -33,8 +33,10 @@ export default class Updater { install (forceRunAfter = false) { if (this.hasUpdate) { setImmediate(() => { - this.window.close() - this.torrentWindow.close() + try { + this.window.close() + this.torrentWindow.close() + } catch (e) {} autoUpdater.quitAndInstall(true, forceRunAfter) }) if (process.platform === 'darwin') shell.openExternal('https://miru.watch/download')