Skip to content

Commit cf584a1

Browse files
committed
Validation rooms accepts occupied as valid status
1 parent 1f6778f commit cf584a1

File tree

1 file changed

+1
-1
lines changed
  • internal/core/operations/schedulers/newversion

1 file changed

+1
-1
lines changed

internal/core/operations/schedulers/newversion/executor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ func (ex *Executor) validateGameRoomCreation(ctx context.Context, scheduler *ent
198198
roomStatus, waitRoomErr := ex.roomManager.WaitRoomStatus(
199199
timeoutContext,
200200
gameRoom,
201-
[]game_room.GameRoomStatus{game_room.GameStatusReady, game_room.GameStatusError},
201+
[]game_room.GameRoomStatus{game_room.GameStatusReady, game_room.GameStatusOccupied, game_room.GameStatusError},
202202
)
203203

204204
if waitRoomErr != nil {

0 commit comments

Comments
 (0)