Skip to content

Commit

Permalink
fix(main) disable worker_threads (#electron/electron/issues/18540)
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Aug 28, 2019
1 parent bcff0d7 commit 559b476
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/main.js
Expand Up @@ -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
Expand Down

0 comments on commit 559b476

Please sign in to comment.