instance lobby timeout fixes
This commit is contained in:
parent
b5e09ba343
commit
2e37dc55ac
@ -76,7 +76,7 @@ impl TimeControl {
|
||||
|
||||
pub fn lobby_timeout(&self) -> DateTime<Utc> {
|
||||
Utc::now()
|
||||
.checked_add_signed(Duration::minutes(5))
|
||||
.checked_add_signed(Duration::seconds(30))
|
||||
.expect("could not set phase end")
|
||||
}
|
||||
|
||||
@ -366,7 +366,7 @@ impl Instance {
|
||||
}
|
||||
|
||||
fn current_game_id(&self) -> Option<Uuid> {
|
||||
if self.phase == InstancePhase::Lobby {
|
||||
if self.phase != InstancePhase::InProgress {
|
||||
return None;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user