set client's 'explicitlyDisconnected' flag to true when disconnect is called

this is instead of using the 'stopRetrying' flag that would affect the retrying policy of other clients
This commit is contained in:
Mostafa Samir 2016-04-04 00:32:17 +02:00
parent 90260d1d3d
commit f3f7bdbf3f
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ function disconnect(id){
return;
}
this.of[id].config.stopRetrying=true;
this.of[id].explicitlyDisconnected=true;
this.of[id].off('*');
if(this.of[id].socket){