Fix disconnection reason being lost for polling transports.

This commit is contained in:
Guillermo Rauch
2012-04-05 14:31:32 -03:00
parent 2075307f23
commit 330407cc9d

View File

@@ -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);
};