Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
AminArria committed Aug 30, 2024
1 parent 955b7a7 commit fad6e0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion apps/arena/lib/arena/game_socket_handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ defmodule Arena.GameSocketHandler do
require Logger
alias Arena.Authentication.GatewaySigner
alias Arena.Authentication.GatewayTokenManager
alias Arena.Utils
alias Arena.Serialization
alias Arena.GameUpdater
alias Arena.Serialization.GameEvent
Expand Down
3 changes: 2 additions & 1 deletion apps/arena/lib/arena/game_updater.ex
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ defmodule Arena.GameUpdater do

broadcast_game_update(state_diff, game_state.game_id)

## TODO: properly handle this case
## We need this check cause there is some unexpected behaviour from the client
## when we start sending deltas before the game state changes to RUNNING
last_broadcasted_game_state =
case get_in(state, [:game_state, :status]) do
:RUNNING -> game_state
Expand Down

0 comments on commit fad6e0b

Please sign in to comment.