dkforest

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

commit 6ac5a9e14397b19927062576ee1d1a587ca7a7b8
parent ac1f806def37a66c67d8814874643748b6fc10e0
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Fri,  8 Dec 2023 04:09:47 -0500

cleanup

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

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -132,7 +132,6 @@ type PokerGame struct { underTheGunIdx int IsGameStarted atomic.Bool IsGameDone atomic.Bool - IsGameOver atomic.Bool } type GameResult struct { @@ -787,7 +786,6 @@ END: // Wait a minimum of X seconds before allowing a new game time.Sleep(MinTimeAfterGame * time.Second) - g.IsGameOver.Store(true) g.IsGameStarted.Store(false) } @@ -889,8 +887,6 @@ func (g *PokerGame) Deal(db *database.DkfDB, roomID string, authUser *database.U } PokerPubSub.Pub(roomUserTopic, ErrorMsgEvent{Message: ""}) - - g.IsGameOver.Store(false) PokerPubSub.Pub(roomTopic, ResetCardsEvent{}) time.Sleep(time.Second)