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++){
|
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'
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue