Skip to content

Commit

Permalink
odstrani tempfix od prej
Browse files Browse the repository at this point in the history
  • Loading branch information
mytja committed Jan 21, 2024
1 parent 863ea1c commit ed6d870
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions backend/internal/tournament/goroutine.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,19 +351,7 @@ func (s *tournamentImpl) RunOrganizer() {

s.logger.Debugw("odpiram talon")

for i, g := range s.games {
start := true
for _, v := range g.Players {
if !v.GetBotStatus() && len(v.GetClients()) == 0 {
s.logger.Debugw("preskakujem igro")
start = false
break
}
}
if !start {
// drugače crasha
continue
}
for i := range s.games {
s.wsServer.Talon(i)
}

Expand Down

0 comments on commit ed6d870

Please sign in to comment.