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
Fix rust lints
bwc9876.dev
3 weeks ago
76afdd5a
6b5163b2
verified
This commit was signed with the committer's
known signature
.
bwc9876.dev
SSH Key Fingerprint:
SHA256:DanMEP/RNlSC7pAVbnXO6wzQV00rqyKj053tz4uH5gQ=
+7
-11
3 changed files
expand all
collapse all
unified
split
manhunt-app
src
profiles.rs
manhunt-signaling
src
state.rs
manhunt-transport
src
matchbox.rs
+1
-1
manhunt-app/src/profiles.rs
reviewed
···
5
5
use manhunt_logic::PlayerProfile;
6
6
use std::io::BufReader;
7
7
use tauri::AppHandle;
8
8
-
use tauri_plugin_dialog::{DialogExt, FileAccessMode, PickerMode};
8
8
+
use tauri_plugin_dialog::{DialogExt, PickerMode};
9
9
use tauri_plugin_fs::{FsExt, OpenOptions};
10
10
use tauri_plugin_store::StoreExt;
11
11
+4
-6
manhunt-signaling/src/state.rs
reviewed
···
223
223
})
224
224
.unwrap_or_default();
225
225
226
226
-
if host {
227
227
-
if let Some(mat) = matches.get_mut(&removed_peer.room).filter(|m| m.open_lobby) {
228
228
-
// If we're host, disconnect everyone else
229
229
-
mat.open_lobby = false;
230
230
-
mat.cancel.cancel();
231
231
-
}
226
226
+
if host && let Some(mat) = matches.get_mut(&removed_peer.room).filter(|m| m.open_lobby) {
227
227
+
// If we're host, disconnect everyone else
228
228
+
mat.open_lobby = false;
229
229
+
mat.cancel.cancel();
232
230
}
233
231
234
232
if other_peers.is_empty() {
+2
-4
manhunt-transport/src/matchbox.rs
reviewed
···
197
197
self.incoming.1.lock().await.close();
198
198
drop(mrx);
199
199
drop(socket);
200
200
-
if should_await {
201
201
-
if let Err(why) = loop_fut.await {
202
202
-
error!("Failed to await after disconnect: {why:?}");
203
203
-
}
200
200
+
if should_await && let Err(why) = loop_fut.await {
201
201
+
error!("Failed to await after disconnect: {why:?}");
204
202
}
205
203
info!("Transport disconnected");
206
204
}