mirror of
https://github.com/NoCrypt/migu.git
synced 2026-03-11 17:45:32 +00:00
fix: error on close
This commit is contained in:
parent
86b45b8d95
commit
9e96c21605
2 changed files with 4 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue