Add various locks in osuToken object
This commit is contained in:
1 parent
aa1887e2c4
commit
466004f239
3 files changed
+228
-159
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user