Remove client from map on disconnect
This commit is contained in:
parent
4991518ed5
commit
727331c859
1 changed files with 1 additions and 0 deletions
|
@ -478,6 +478,7 @@ export default class App extends Component {
|
||||||
|
|
||||||
var client = this.clients.get(netID);
|
var client = this.clients.get(netID);
|
||||||
if (client) {
|
if (client) {
|
||||||
|
this.clients.delete(netID);
|
||||||
client.disconnect();
|
client.disconnect();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue