Fix a multiplayer bug that I cannot reproduce

This commit is contained in:
LoveEevee 2020-03-17 08:51:23 +03:00
parent 2232c36182
commit a62184e0d2

View File

@ -276,7 +276,7 @@ async def connection(ws, path):
if "other_user" in user and "ws" in user["other_user"]:
if type == "songsel" or type == "catjump":
# Change song select position
if user["other_user"]["action"] == "songsel":
if user["other_user"]["action"] == "songsel" and type(value) is dict:
value["player"] = user["player"]
sent_msg = msgobj(type, value)
await asyncio.wait([