diff --git a/src/main/main.js b/src/main/main.js index df21344..0d50a44 100644 --- a/src/main/main.js +++ b/src/main/main.js @@ -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() })