Change matchmaking update logic condition

This commit is contained in:
0880
2026-01-20 19:59:08 +03:30
parent c367ebad1f
commit b75e03cd3e

3
app.py
View File

@@ -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()