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 second = None
position: int = 0 position: int = 0
# UPDATE LOGIC # UPDATE LOGIC
while not second and position < len(quick_queue): while position < len(quick_queue):
if quick_queue[position] not in quick_map: if quick_queue[position] not in quick_map:
if not first: if not first:
first = quick_queue[position] first = quick_queue[position]
else: else:
second = quick_queue[position] second = quick_queue[position]
break
position += 1 position += 1
if first and second: if first and second:
room = Room() room = Room()