fix bug where revoke check is called too often
This commit is contained in:
parent
c7127b88df
commit
ef5696f61d
@ -672,7 +672,7 @@ class ConnectionHandler(object):
|
||||
async def revoke_check(self):
|
||||
now = datetime.datetime.now()
|
||||
if self.lastCheck + self.revoke_check_timedelta < now:
|
||||
now = datetime.datetime.now()
|
||||
self.lastCheck = datetime.datetime.now()
|
||||
self.match_manager.check_matches_lifespan()
|
||||
self.session_manager.revoke_inactive_sessions()
|
||||
self.user_manager.revoke_inactive_accounts()
|
||||
|
Loading…
Reference in New Issue
Block a user