Skip to content

fix: order turn_change before game_state in gamecoord#129

Merged
rustwizard merged 1 commit into
masterfrom
fix/gamecoord-publish-order
Jun 14, 2026
Merged

fix: order turn_change before game_state in gamecoord#129
rustwizard merged 1 commit into
masterfrom
fix/gamecoord-publish-order

Conversation

@rustwizard

Copy link
Copy Markdown
Owner

NotifyTurnStart spawned two independent goroutines, so clients could receive game_state before turn_change. Publish both in one goroutine sequentially to guarantee order, keeping the network I/O off the game FSM goroutine and g.mu.

NotifyTurnStart spawned two independent goroutines, so clients could receive
game_state before turn_change. Publish both in one goroutine sequentially to
guarantee order, keeping the network I/O off the game FSM goroutine and g.mu.
@rustwizard rustwizard self-assigned this Jun 14, 2026
@rustwizard rustwizard merged commit d8b7a16 into master Jun 14, 2026
2 checks passed
@rustwizard rustwizard deleted the fix/gamecoord-publish-order branch June 14, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant