Fix off-by-1 bug in User.close().
Esse commit está contido em:
@@ -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);
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário