Browse Source

remove ship from shiplist when it disconnects

pbs
jake 4 years ago
parent
commit
a02cb57825
  1. 1
      src/login/character.rs

1
src/login/character.rs

@ -558,6 +558,7 @@ impl<EG: EntityGateway> InterserverActor for CharacterServerState<EG> {
} }
async fn on_disconnect(&mut self, id: ServerId) -> Vec<(ServerId, Self::SendMessage)> { async fn on_disconnect(&mut self, id: ServerId) -> Vec<(ServerId, Self::SendMessage)> {
self.ships.remove(&id);
Vec::new() Vec::new()
} }
} }

Loading…
Cancel
Save