From 031364b5a2fae800f97f4c62a2904976e272961a Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Thu, 14 Aug 2014 19:15:57 -0700 Subject: [PATCH] Bug fix to stop recursion to run out of stack space on stream errors events.js:117 listeners[i].apply(this, args); ^ RangeError: Maximum call stack size exceeded --- ohe/adnstream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ohe/adnstream.js b/ohe/adnstream.js index 7bb7d2d..24f6444 100644 --- a/ohe/adnstream.js +++ b/ohe/adnstream.js @@ -43,7 +43,7 @@ ADNStream.prototype.process = function (purge) { }); this.request.on('error', function (error) { - this.emit('error', error); + self.emit('error', error); }); this.request.on('response', function (response) {