mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-12 02:23:44 +00:00
fix(multiplayer): validate assignment expiry format
This commit is contained in:
@@ -233,7 +233,7 @@ func connect_to_assignment() -> Error:
|
||||
|
||||
|
||||
static func _assignment_is_fresh(value: AssignmentState) -> bool:
|
||||
if value == null or value.expires_at.is_empty():
|
||||
if value == null or not AssignmentState.is_valid_expiry_timestamp(value.expires_at):
|
||||
return false
|
||||
var expiry := Time.get_unix_time_from_datetime_string(value.expires_at)
|
||||
return expiry > Time.get_unix_time_from_system()
|
||||
|
||||
Reference in New Issue
Block a user