From c054b27f628f23fecc505b9e09e78721738f3c4e Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 16 Sep 2026 13:52:58 -0400 Subject: fix: shutdown admission, recovery identity/order, rollback journal retention, pickup merge --- internal/game/owner.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'internal/game/owner.go') diff --git a/internal/game/owner.go b/internal/game/owner.go index 8546d10..ce1f687 100644 --- a/internal/game/owner.go +++ b/internal/game/owner.go @@ -136,10 +136,11 @@ func (g *Game) run(fn func()) { close(task) }) { // The owner loop has stopped (graceful shutdown in progress). - // Admissions are already closed, so only stragglers reach this: - // execute inline rather than block forever. A full queue never - // takes this path: enqueue applies backpressure instead. - fn() + // Admissions are closed: DROP the task. Executing it on the + // caller's goroutine would mutate live state concurrently with the + // shutdown sequence and after the final-save barrier (network + // transports are still draining until transportStop runs). See + // TestShutdownRejectsSessionInput. return } <-task -- cgit v1.2.3