From 330407cc9d726988d79ec4d57b0ef16e587485af Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Thu, 5 Apr 2012 14:31:32 -0300 Subject: [PATCH] Fix disconnection reason being lost for polling transports. --- lib/transports/http-polling.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); };