remove ship from shiplist when it disconnects

This commit is contained in:
jake 2020-10-27 06:36:34 -06:00
parent b249a3fed5
commit a02cb57825

View File

@ -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()
}
}