From 46b9e25ed713d54d7f23e587dd2028f17c38cf06 Mon Sep 17 00:00:00 2001 From: mytja Date: Wed, 17 Jan 2024 14:37:04 +0100 Subject: [PATCH] prevent klop from timeouting --- backend/internal/ws/licitiranje.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/internal/ws/licitiranje.go b/backend/internal/ws/licitiranje.go index 8feed91..0f34ee1 100644 --- a/backend/internal/ws/licitiranje.go +++ b/backend/internal/ws/licitiranje.go @@ -210,6 +210,10 @@ func (s *serverImpl) Licitiranje(tip int32, gameId string, userId string) { game.CardsStarted = true game.CurrentPredictions = &messages.Predictions{Gamemode: game.GameMode} + if game.TournamentID != "" { + return + } + // igramo klopa s.FirstPrediction(gameId) }