diff --git a/lib/transports/http-polling.js b/lib/transports/http-polling.js index 89b7e0428b..399def3d6e 100644 --- a/lib/transports/http-polling.js +++ b/lib/transports/http-polling.js @@ -51,8 +51,7 @@ HTTPPolling.prototype.name = 'httppolling'; HTTPPolling.prototype.setHandlers = function () { HTTPTransport.prototype.setHandlers.call(this); - this.socket.removeListener('end', this.bound.end); - this.socket.removeListener('close', this.bound.close); + this.socket.removeListener('end', this.bound.end); }; /**