Fix off-by-1 bug in User.close().

Esse commit está contido em:
Daniel Howard
2014-06-27 15:29:58 -07:00
commit 1b1a7a5159
+1 -1
Ver Arquivo
@@ -26,7 +26,7 @@ User.prototype.close = function() {
'Content-Type': 'application/json',
'Content-Length': noop.length
};
for(var i = this.listeners.length; i >= 0; i--) {
for(var i = this.listeners.length-1; i >= 0; i--) {
conn = this.listeners[i].connection;
this.listeners[i].writeHead(200, noop_headers);
this.listeners[i].end(noop);