Files
OpenFrontIO/src/server
Berk 2b6ebbfe2d fix: add readyState check before endTurn broadcast (#3879)
## Description:

Guard `ws.send()` in `endTurn()` with a `readyState === OPEN` check to
prevent sending messages to WebSocket connections that have already
closed.

Without this guard, broadcasting to a client whose connection closed
between ticks can throw an exception and crash the game loop.

## Please complete the following:

- [X] I have added screenshots for all UI updates
- [X] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [X] I have added relevant tests to the test directory
- [X] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced

## Please put your Discord username so you can be contacted if a bug or
regression is found:

barfires
2026-05-11 13:04:36 -07:00
..
2026-04-26 21:30:11 +00:00
2026-04-20 11:18:02 -07:00
2026-04-01 20:03:39 -07:00
2025-07-21 16:05:35 -07:00
2026-05-06 13:09:58 -06:00
2026-04-26 21:30:11 +00:00
2026-05-04 12:53:02 -06:00
2026-04-20 11:18:02 -07:00

Gatekeeper

Security module for botting, rate limiting, fingerprinting, etc.