From 1fa74a46a34dac96822aa473647fef040694474c Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Wed, 1 Aug 2012 11:58:28 -0700 Subject: [PATCH] Revert "Fix disconnectSync getting ignored" This reverts commit f48b40e134fbcdf6225b99547f8b1a67df9ba4ba. --- lib/transports/http-polling.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/transports/http-polling.js b/lib/transports/http-polling.js index 399def3d..89b7e042 100644 --- a/lib/transports/http-polling.js +++ b/lib/transports/http-polling.js @@ -51,7 +51,8 @@ HTTPPolling.prototype.name = 'httppolling'; HTTPPolling.prototype.setHandlers = function () { HTTPTransport.prototype.setHandlers.call(this); - this.socket.removeListener('end', this.bound.end); + this.socket.removeListener('end', this.bound.end); + this.socket.removeListener('close', this.bound.close); }; /**