From 559b476c54c6e9ad593be2e2f591f0008a6f07c8 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 28 Aug 2019 18:36:30 +0300 Subject: [PATCH] fix(main) disable worker_threads (#electron/electron/issues/18540) --- lib/main.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/main.js b/lib/main.js index 0e1b637..ad5bb53 100644 --- a/lib/main.js +++ b/lib/main.js @@ -7,6 +7,13 @@ const { globalShortcut, } = require('electron'); +// worker_threads doesn't supported +// electron just crash +// so disable it +// +// https://github.com/electron/electron/issues/18540 +process.env.THREAD_IT_COUNT = 0; + const server = require('./server'); // Keep a global reference of the window object, if you don't, the window will