remove ship from shiplist when it disconnects
This commit is contained in:
parent
b249a3fed5
commit
a02cb57825
@ -558,6 +558,7 @@ impl<EG: EntityGateway> InterserverActor for CharacterServerState<EG> {
|
||||
}
|
||||
|
||||
async fn on_disconnect(&mut self, id: ServerId) -> Vec<(ServerId, Self::SendMessage)> {
|
||||
self.ships.remove(&id);
|
||||
Vec::new()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user