feat: max timeout for move

This commit is contained in:
2026-01-23 13:04:47 -05:00
Unverified
parent 864794190a
commit 459aa83690
3 changed files with 90 additions and 11 deletions

View File

@@ -54,6 +54,7 @@ pub struct Match {
pub viewers: Vec<SocketAddr>,
pub ledger: Vec<(Color, usize, Instant)>,
pub wait_thread: Option<tokio::task::JoinHandle<()>>,
pub timeout_thread: Option<tokio::task::JoinHandle<()>>,
pub player1: SocketAddr,
pub player2: SocketAddr,
}
@@ -73,6 +74,7 @@ impl Match {
viewers: Vec::new(),
ledger: Vec::new(),
wait_thread: None,
timeout_thread: None,
player1: if player1 == first { player1 } else { player2 },
player2: if player1 == first { player2 } else { player1 },
}