mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-15 03:01:37 -05:00
Set a higher maxListeners value
fixes #5373 - Set Max Listeners on our Event Emitter to 100 - Stops the '11 listeners added' error on node 0.12 during tests
This commit is contained in:
parent
eed6879845
commit
b943948d24
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…
Add table
Reference in a new issue