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) {