From 2a30dee86b94bcedbf71139529817b1070c33131 Mon Sep 17 00:00:00 2001 From: "Pedro P. Candel" Date: Fri, 13 Jul 2012 16:01:31 +0200 Subject: [PATCH] Fixes mcavage/node-ldapjs#83: "ReferenceError: removeAllListeners is not defined" --- lib/client/pool.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/client/pool.js b/lib/client/pool.js index a2d914c..ffda343 100644 --- a/lib/client/pool.js +++ b/lib/client/pool.js @@ -76,12 +76,12 @@ function createPool(options) { return callback(err); res.on('error', function (e) { - removeAllListeners('end'); + client.removeAllListeners('end'); callback(e); }); res.on('end', function () { - removeAllListeners('error'); + client.removeAllListeners('error'); callback(null); }); });