Update disconnect event removal

This commit is contained in:
Brandon Nozaki Miller 2016-08-12 14:07:03 -07:00 committed by GitHub
parent 5eb7eb1894
commit df8c3c0d90

View file

@ -94,7 +94,7 @@ function disconnect(id){
this.of[id].explicitlyDisconnected=true; this.of[id].explicitlyDisconnected=true;
this.of[id].off('*'); this.of[id].off('*','*');
if(this.of[id].socket){ if(this.of[id].socket){
if(this.of[id].socket.destroy){ if(this.of[id].socket.destroy){
this.of[id].socket.destroy(); this.of[id].socket.destroy();