From 09f24131fa035e185c0220e7c866e7f76ab93848 Mon Sep 17 00:00:00 2001 From: Yuya Ochiai Date: Wed, 8 Nov 2017 23:23:13 +0900 Subject: [PATCH] Ignore "gpu-process-crashed" event then output the log to console --- src/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index e59ffc7d..afb732ee 100644 --- a/src/main.js +++ b/src/main.js @@ -305,8 +305,8 @@ app.on('certificate-error', (event, webContents, url, error, certificate, callba } }); -app.on('gpu-process-crashed', () => { - throw new Error('The GPU process has crached'); +app.on('gpu-process-crashed', (event, killed) => { + console.log(`The GPU process has crached (killed = ${killed})`); }); const loginCallbackMap = new Map();