mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-20 18:42:05 +00:00
fix: close error
This commit is contained in:
parent
b0a1dc025f
commit
86b45b8d95
1 changed files with 3 additions and 1 deletions
|
|
@ -61,7 +61,9 @@ function createWindow () {
|
|||
|
||||
mainWindow.on('closed', () => {
|
||||
mainWindow = null
|
||||
webtorrentWindow.webContents.postMessage('destroy', null)
|
||||
try {
|
||||
webtorrentWindow.webContents.postMessage('destroy', null)
|
||||
} catch (e) {}
|
||||
app.quit()
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue