Change matchmaking update logic condition
This commit is contained in:
3
app.py
3
app.py
@@ -262,12 +262,13 @@ async def quick_match(request: Request):
|
||||
second = None
|
||||
position: int = 0
|
||||
# UPDATE LOGIC
|
||||
while not second and position < len(quick_queue):
|
||||
while position < len(quick_queue):
|
||||
if quick_queue[position] not in quick_map:
|
||||
if not first:
|
||||
first = quick_queue[position]
|
||||
else:
|
||||
second = quick_queue[position]
|
||||
break
|
||||
position += 1
|
||||
if first and second:
|
||||
room = Room()
|
||||
|
||||
Reference in New Issue
Block a user