From a62184e0d2bb8a45057b42caf882b07f4e22806c Mon Sep 17 00:00:00 2001 From: LoveEevee Date: Tue, 17 Mar 2020 08:51:23 +0300 Subject: [PATCH] Fix a multiplayer bug that I cannot reproduce --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 587e0db..bc8cefa 100644 --- a/server.py +++ b/server.py @@ -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([