fixed server delete soicket method
This commit is contained in:
parent
7484a520ea
commit
bedf38a4ec
1 changed files with 0 additions and 4 deletions
|
@ -290,8 +290,6 @@ function init(path,config,log,port){
|
|||
for(var i=0, count=server.sockets.length; i<count; i++){
|
||||
var socket=server.sockets[i];
|
||||
|
||||
console.log(count);
|
||||
|
||||
if(socket){
|
||||
if(socket.readable)
|
||||
continue;
|
||||
|
@ -304,8 +302,6 @@ function init(path,config,log,port){
|
|||
|
||||
server.sockets.splice(i,1);
|
||||
|
||||
console.log('deleted'.error);
|
||||
|
||||
server.trigger(
|
||||
'socket.disconnected'
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue