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:
parent
90260d1d3d
commit
f3f7bdbf3f
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ function disconnect(id){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.of[id].config.stopRetrying=true;
|
this.of[id].explicitlyDisconnected=true;
|
||||||
|
|
||||||
this.of[id].off('*');
|
this.of[id].off('*');
|
||||||
if(this.of[id].socket){
|
if(this.of[id].socket){
|
||||||
|
|
Loading…
Reference in a new issue