fix: error on close

This commit is contained in:
ThaUnknown 2023-09-23 23:17:14 +02:00
parent 86b45b8d95
commit 9e96c21605
2 changed files with 4 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "Miru",
"version": "4.4.10",
"version": "4.4.11",
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
"description": "Stream anime torrents, real-time with no waiting for downloads.",
"main": "build/main.js",

View file

@ -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()
})