Pass if socket_guild_id not in session

This commit is contained in:
Jeremy Zhang 2018-02-16 19:50:53 +00:00
parent b516f8af3a
commit dbd943f209

View File

@ -46,6 +46,9 @@ class Gateway(Namespace):
def on_disconnect(self):
if "user_keys" not in session:
return
if "socket_guild_id" not in session:
disconnect()
else:
guild_id = session["socket_guild_id"]
msg = {}
if session["unauthenticated"]: