dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 85e5572c5a3ea1657ef16e6e9a36429ef692327f
parent b2fe4a3aaabfc4e8ee84ecae9ff3de379a3d790c
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Fri, 15 Dec 2023 04:53:31 -0500

cleanup

Diffstat:
Mpkg/web/handlers/poker/poker.go | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -575,8 +575,10 @@ OUTER: if evt.Fold { p.Folded.Store(true) + p.CardsMtx.RLock() evt1 := PokerEvent{ID: "card" + itoa(p.Cards[0].Idx), Name: "", Idx: p.Cards[0].Idx, Top: BurnStackY, Left: BurnStackX, Angle: "0deg", Reveal: false} evt2 := PokerEvent{ID: "card" + itoa(p.Cards[1].Idx), Name: "", Idx: p.Cards[1].Idx, Top: BurnStackY, Left: BurnStackX, Angle: "0deg", Reveal: false} + p.CardsMtx.RUnlock() PokerPubSub.Pub(roomTopic, evt1) PokerPubSub.Pub(roomTopic, evt2) g.Ongoing.AddEvent(evt1, evt2)