From a4dc088ceb6b39f59ef4ba8c518c387ce8659b4f Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 18 Jan 2017 11:34:59 -0700 Subject: [PATCH] Increase max listener limit on ipcRenderer We deliberately assign more than 10 listeners on the method response channel. --- src/ipc-helpers.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ipc-helpers.js b/src/ipc-helpers.js index 6a7565968..4be9f9613 100644 --- a/src/ipc-helpers.js +++ b/src/ipc-helpers.js @@ -15,6 +15,7 @@ exports.on = function (emitter, eventName, callback) { exports.call = function (channel, ...args) { if (!ipcRenderer) { ipcRenderer = require('electron').ipcRenderer + ipcRenderer.setMaxListeners(20) } var responseChannel = getResponseChannel(channel)