From bedfb64103afc796888267953a7bdfd116d0997a Mon Sep 17 00:00:00 2001 From: nak Date: Wed, 18 Mar 2026 08:18:46 +0000 Subject: [PATCH] Add SitOut status to ability to stand from table --- poker/table.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/poker/table.go b/poker/table.go index a9505f7..89311a2 100644 --- a/poker/table.go +++ b/poker/table.go @@ -142,7 +142,8 @@ func (t *Table) Stand(username string) (int64, error) { t.mu.Unlock() return 0, errors.New("not seated") } - if t.Hand.Phase != PhaseWaiting && !seat.Folded { + // Allow standing if folded OR if marked as disconnected (SitOut mid-hand) + if t.Hand.Phase != PhaseWaiting && !seat.Folded && !seat.SitOut { t.mu.Unlock() return 0, errors.New("cannot stand mid-hand while active") }