From 973a15adb8b4651a00f137dd32ac890df5c89fe3 Mon Sep 17 00:00:00 2001 From: cblgh Date: Sat, 29 Jun 2019 15:22:51 +0200 Subject: [PATCH] set max listeners for event emitter (fixes cli bug?) --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 9701aef..34fd992 100644 --- a/index.js +++ b/index.js @@ -32,6 +32,7 @@ function Cabal (storage, key, opts) { if (!(this instanceof Cabal)) return new Cabal(storage, key, opts) if (!opts) opts = {} events.EventEmitter.call(this) + this.setMaxListeners(Infinity) var json = { encode: function (obj) {