mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Pass if socket_guild_id not in session
This commit is contained in:
parent
b516f8af3a
commit
dbd943f209
@ -46,6 +46,9 @@ class Gateway(Namespace):
|
|||||||
def on_disconnect(self):
|
def on_disconnect(self):
|
||||||
if "user_keys" not in session:
|
if "user_keys" not in session:
|
||||||
return
|
return
|
||||||
|
if "socket_guild_id" not in session:
|
||||||
|
disconnect()
|
||||||
|
else:
|
||||||
guild_id = session["socket_guild_id"]
|
guild_id = session["socket_guild_id"]
|
||||||
msg = {}
|
msg = {}
|
||||||
if session["unauthenticated"]:
|
if session["unauthenticated"]:
|
||||||
|
Loading…
Reference in New Issue
Block a user