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
1 changed files with 1 additions and 1 deletions

View File

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