broadcast game state when move timer expires

This commit is contained in:
Branden J Brown 2024-02-03 22:48:23 -06:00
parent 5c37d6cd6f
commit e588382794
1 changed files with 1 additions and 0 deletions

View File

@ -122,6 +122,7 @@ func gameActor(ctx context.Context, g *game.Match, dealer, chall person, join <-
case <-tick.C: case <-tick.C:
slog.InfoContext(ctx, "out of time") slog.InfoContext(ctx, "out of time")
g.Expire() g.Expire()
broadcast(ctx, g, dealer, chall, obs, dl)
gameOver(ctx, dealer, chall, obs) gameOver(ctx, dealer, chall, obs)
return return
} }