mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Merge pull request #5929 from ErisDS/issue-5373-emitters
Set a higher maxListeners value
This commit is contained in:
commit
69e93eb5cb
1 changed files with 6 additions and 3 deletions
|
@ -1,9 +1,12 @@
|
|||
var events = require('events'),
|
||||
util = require('util'),
|
||||
EventRegistry;
|
||||
EventRegistry,
|
||||
EventRegistryInstance;
|
||||
|
||||
EventRegistry = function () {};
|
||||
|
||||
util.inherits(EventRegistry, events.EventEmitter);
|
||||
|
||||
module.exports = new EventRegistry();
|
||||
EventRegistryInstance = new EventRegistry();
|
||||
EventRegistryInstance.setMaxListeners(100);
|
||||
|
||||
module.exports = EventRegistryInstance;
|
||||
|
|
Loading…
Reference in a new issue