.BANCHO. Add max packets buffer size

This commit is contained in:
Nyo
2016-10-08 22:37:10 +02:00
parent 4ed5e0d14a
commit e7b7dc932a
2 changed files with 5 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ if userToken.matchID != -1 and userToken.actionID != actions.MULTIPLAYING and us
userToken.partMatch()
'''
# Update cached stats if our pp changedm if we've just submitted a score or we've changed gameMode
# Update cached stats if our pp changed if we've just submitted a score or we've changed gameMode
if (userToken.actionID == actions.PLAYING or userToken.actionID == actions.MULTIPLAYING) or (userToken.pp != userUtils.getPP(userID, userToken.gameMode)) or (userToken.gameMode != packetData["gameMode"]):
# Always update game mode, or we'll cache stats from the wrong game mode if we've changed it
userToken.gameMode = packetData["gameMode"]