Merge pull request #13654 from atom/ns-increase-max-listeners

Increase max listener limit on ipcRenderer
This commit is contained in:
Nathan Sobo 2017-01-18 13:28:51 -07:00 committed by GitHub
commit 3aa773b700

View File

@ -15,6 +15,7 @@ exports.on = function (emitter, eventName, callback) {
exports.call = function (channel, ...args) { exports.call = function (channel, ...args) {
if (!ipcRenderer) { if (!ipcRenderer) {
ipcRenderer = require('electron').ipcRenderer ipcRenderer = require('electron').ipcRenderer
ipcRenderer.setMaxListeners(20)
} }
var responseChannel = getResponseChannel(channel) var responseChannel = getResponseChannel(channel)