From 3d7f46da651456f0d17946458e2cfdca53464063 Mon Sep 17 00:00:00 2001 From: DC Date: Thu, 26 May 2016 01:39:56 -0700 Subject: [PATCH] Disable WebRTC on Windows to work around Electron crash --- renderer/webtorrent.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/renderer/webtorrent.js b/renderer/webtorrent.js index 3563c3e4..6ccb203c 100644 --- a/renderer/webtorrent.js +++ b/renderer/webtorrent.js @@ -33,7 +33,9 @@ var client = window.client = new WebTorrent({ // HACK: OS X: Disable WebRTC peers to fix 100% CPU issue caused by Chrome bug. // Fixed in Chrome 51, so we can remove this hack once Electron updates Chrome. // Issue: https://github.com/feross/webtorrent-desktop/issues/353 - wrtc: process.platform !== 'darwin' + // HACK #2: Windows: Disable WebRTC to fix Chrome 50 / Electron 1.1.[1-3] crash. + // Issue: https://github.com/electron/electron/issues/5629 + wrtc: process.platform === 'linux' } })