dkforest

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

commit 3f5ee8f0a3bf7913bccf6dc05fd4e099209b79fc
parent 02c08e81e11a967c4025e7e66193e86acaaa8f00
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Thu,  7 Dec 2023 19:38:42 -0500

fix ongoing game bug

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 @@ -851,10 +851,6 @@ func (g *PokerGame) Deal(db *database.DkfDB, roomID string, authUser *database.U PokerPubSub.Pub(roomUserTopic, ErrorMsgEvent{Message: "game already ongoing"}) return } - if g.Ongoing != nil && !g.IsGameOver.Load() { - PokerPubSub.Pub(roomUserTopic, ErrorMsgEvent{Message: "game already ongoing"}) - return - } if g.CountEligibleSeated() < 2 { PokerPubSub.Pub(roomUserTopic, ErrorMsgEvent{Message: "need at least 2 players"}) return