fixed server delete soicket method

This commit is contained in:
Brandon Miller 2014-03-01 02:30:49 -08:00
parent 7484a520ea
commit bedf38a4ec

View file

@ -290,8 +290,6 @@ function init(path,config,log,port){
for(var i=0, count=server.sockets.length; i<count; i++){ for(var i=0, count=server.sockets.length; i<count; i++){
var socket=server.sockets[i]; var socket=server.sockets[i];
console.log(count);
if(socket){ if(socket){
if(socket.readable) if(socket.readable)
continue; continue;
@ -304,8 +302,6 @@ function init(path,config,log,port){
server.sockets.splice(i,1); server.sockets.splice(i,1);
console.log('deleted'.error);
server.trigger( server.trigger(
'socket.disconnected' 'socket.disconnected'
); );