tangled
alpha
login
or
join now
bwc9876.dev
/
manhunt-app
0
fork
atom
Live location tracking and playback for the game "manhunt"
0
fork
atom
overview
issues
pulls
1
pipelines
Make host leaving a lobby close the lobby
bwc9876.dev
3 weeks ago
a23c1b14
9aa686d9
verified
This commit was signed with the committer's
known signature
.
bwc9876.dev
SSH Key Fingerprint:
SHA256:DanMEP/RNlSC7pAVbnXO6wzQV00rqyKj053tz4uH5gQ=
+7
-2
2 changed files
expand all
collapse all
unified
split
TODO.md
manhunt-app
src
state.rs
-1
TODO.md
reviewed
···
1
1
# TODO
2
2
3
3
- [ ] Start on start game and game settings buttons
4
4
-
- [ ] If host leaves, kick all from lobby
5
4
+7
-1
manhunt-app/src/state.rs
reviewed
···
222
222
}
223
223
Ok(None) => {
224
224
info!("User quit lobby");
225
225
+
state.quit_to_menu(app_game).await;
225
226
}
226
227
Err(why) => {
227
228
error!("Lobby Error: {why}");
228
228
-
error_dialog(&app_game, &format!("Error joining the lobby: {why}"));
229
229
+
error_dialog(
230
230
+
&app_game,
231
231
+
&format!(
232
232
+
"Encountered an error while in the lobby. you have been disconnected:\n\n{why}"
233
233
+
),
234
234
+
);
229
235
state.quit_to_menu(app_game).await;
230
236
}
231
237
}