Fix a multiplayer bug that I cannot reproduce
This commit is contained in:
@@ -276,7 +276,7 @@ async def connection(ws, path):
|
|||||||
if "other_user" in user and "ws" in user["other_user"]:
|
if "other_user" in user and "ws" in user["other_user"]:
|
||||||
if type == "songsel" or type == "catjump":
|
if type == "songsel" or type == "catjump":
|
||||||
# Change song select position
|
# 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"]
|
value["player"] = user["player"]
|
||||||
sent_msg = msgobj(type, value)
|
sent_msg = msgobj(type, value)
|
||||||
await asyncio.wait([
|
await asyncio.wait([
|
||||||
|
|||||||
Reference in New Issue
Block a user