mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 06:27:03 +01:00
Time sleep 1 in heartbeat
This commit is contained in:
parent
a5faea5a97
commit
ca09254ada
@ -78,18 +78,21 @@ class Gateway(Namespace):
|
|||||||
if not visitor_mode:
|
if not visitor_mode:
|
||||||
key = None
|
key = None
|
||||||
if "unauthenticated" not in session:
|
if "unauthenticated" not in session:
|
||||||
|
self.teardown_db_session()
|
||||||
disconnect()
|
disconnect()
|
||||||
if session["unauthenticated"]:
|
if session["unauthenticated"]:
|
||||||
key = session["user_keys"][guild_id]
|
key = session["user_keys"][guild_id]
|
||||||
status = update_user_status(guild_id, session["username"], key)
|
status = update_user_status(guild_id, session["username"], key)
|
||||||
if status["revoked"] or status["banned"]:
|
if status["revoked"] or status["banned"]:
|
||||||
emit("revoke")
|
emit("revoke")
|
||||||
time.sleep(1000)
|
self.teardown_db_session()
|
||||||
|
time.sleep(1)
|
||||||
disconnect()
|
disconnect()
|
||||||
else:
|
else:
|
||||||
emit("ack")
|
emit("ack")
|
||||||
else:
|
else:
|
||||||
if not guild_accepts_visitors(guild_id):
|
if not guild_accepts_visitors(guild_id):
|
||||||
|
self.teardown_db_session()
|
||||||
disconnect()
|
disconnect()
|
||||||
self.teardown_db_session()
|
self.teardown_db_session()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user