.BANCHO. .FIX. Fix leave match right after joining

This commit is contained in:
Nyo 2016-09-04 17:59:12 +02:00
parent 17a8636de7
commit 48925c58c0

View File

@ -19,7 +19,8 @@ def joinMatch(userToken, matchID, password, isPasswordHashed = False):
userToken.stopSpectating()
# Leave other matches
userToken.partMatch()
if userToken.matchID > -1 and userToken.matchID != matchID:
userToken.partMatch()
# Get usertoken data
userID = userToken.userID