Created
October 7, 2011 17:19
-
-
Save xaptronic/1270830 to your computer and use it in GitHub Desktop.
Calling setMaxListeners on the sub object.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/lib/stores/redis.js | |
+++ b/lib/stores/redis.js | |
@@ -75,6 +75,7 @@ function Redis (opts) { | |
} else { | |
opts.redisSub || (opts.redisSub = {}); | |
this.sub = redis.createClient(opts.redisSub.port, opts.redisSub.host, opts.redisSub); | |
+ this.sub.setMaxListeners(0); | |
} | |
if (opts.redisClient instanceof RedisClient) { | |
this.cmd = opts.redisClient; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment