forked from CringeStudios/gamja
Remove client from map on disconnect
This commit is contained in:
parent
4991518ed5
commit
727331c859
@ -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…
x
Reference in New Issue
Block a user