Skip to content

Commit

Permalink
fix: catch close error
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaUnknown committed Aug 13, 2024
1 parent 0a6f446 commit d9236f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions electron/src/main/updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit d9236f9

Please sign in to comment.