diff --git a/lib/transports/http-polling.js b/lib/transports/http-polling.js index 375827bde8..89b7e0428b 100644 --- a/lib/transports/http-polling.js +++ b/lib/transports/http-polling.js @@ -140,8 +140,8 @@ HTTPPolling.prototype.write = function (data, close) { * @api private */ -HTTPPolling.prototype.end = function () { +HTTPPolling.prototype.end = function (reason) { this.clearPollTimeout(); - return HTTPTransport.prototype.end.call(this); + return HTTPTransport.prototype.end.call(this, reason); };