fix: close error

This commit is contained in:
ThaUnknown 2023-09-21 12:57:01 +02:00
parent b0a1dc025f
commit 86b45b8d95

View file

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