Add various locks in osuToken object

This commit is contained in:
Giuseppe Guerra committed 2017-08-11 00:45:44 +02:00
1 parent aa1887e2c4
commit 466004f239
3 files changed
+228 -159

No files matched your search

+4
View File
@@ -8,6 +8,10 @@ def handle(userToken, packetData):
# Start spectating packet
packetData = clientPackets.startSpectating(packetData)
# If the user id is less than 0, treat this as a stop spectating packet
if packetData["userID"] < 0:
userToken.stopSpectating()
# Get host token
targetToken = glob.tokens.getTokenFromUserID(packetData["userID"])
if targetToken is None: