Added check to see if the HUNTER actually joined the match so runners don't get an error when joining to a not yet hosted match.
Some checks failed
Build Docker image / build-and-push-image (push) Has been cancelled

Issue found by ahbahl. Thank you for bringing it to my attention ^^
This commit is contained in:
ZKWolf 2024-07-30 21:34:40 +02:00
parent f8a6ab315d
commit 16458a0d44

View File

@ -274,6 +274,8 @@ class MatchmakingQueue:
openLobby.nonHosts.append(queuedPlayer)
# creatorId, matchId, joinerId=None, region=None, matchConfig=None,
# SessionSettings=None, PrivateMatch=False, countA=1, countB=5
if not openLobby.SessionSettings:
return eta_data
data = self.createQueueResponseMatched(creatorId=openLobby.host, matchId=openLobby.id,
joinerId=userId, matchConfig=openLobby.matchConfig,
SessionSettings=openLobby.SessionSettings, PrivateMatch=True,