1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Fix not returning to main menu after some game modes are complete

This commit is contained in:
NG (Graham)
2026-04-06 11:00:46 -04:00
parent 8c2a90cea7
commit af1f7dfc7a

View File

@@ -710,7 +710,7 @@ impl <L: super::CustomGameLogic> GenericGamemodeEngine<L> {
if let Err(e) = conn.user.save_player_connected_status(self.game_guid(), false).await {
log::error!("Failed to mark player {} (user {}) as disconnected in game {}: {}", player_id, user_id, self.game_guid(), e);
}
if !is_unregister {
if !is_unregister || conn.connection.connection.is_connected() {
conn.connection.connection.goodbye(&conn.connection.sender).await;
}
return has_active_connections;