mirror of
https://github.com/wolfswolke/DeathGarden_API_Rebirth.git
synced 2026-07-11 14:13:54 -05:00
Fixed Temp Session
This commit is contained in:
parent
e42f3e411f
commit
e2c86b8381
|
|
@ -104,8 +104,9 @@ class Session_Manager:
|
|||
current_time = time.time()
|
||||
if self.sessions == {}:
|
||||
return
|
||||
for session in self.sessions:
|
||||
if self.sessions[session]["expires"] < current_time:
|
||||
temp_sessions = dict(self.sessions)
|
||||
for session in temp_sessions:
|
||||
if temp_sessions[session]["expires"] < current_time:
|
||||
self.sessions.pop(session)
|
||||
|
||||
def __write_sessions__(self):
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user