diff --git a/package.json b/package.json index d087c35..fa18023 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Miru", - "version": "4.4.10", + "version": "4.4.11", "author": "ThaUnknown_ ", "description": "Stream anime torrents, real-time with no waiting for downloads.", "main": "build/main.js", diff --git a/src/main/main.js b/src/main/main.js index 0d50a44..f5aa7f3 100644 --- a/src/main/main.js +++ b/src/main/main.js @@ -69,7 +69,9 @@ function createWindow () { ipcMain.on('close', () => { mainWindow = null - webtorrentWindow.webContents.postMessage('destroy', null) + try { + webtorrentWindow.webContents.postMessage('destroy', null) + } catch(e) {} app.quit() })