fix: 开启仅一台设置登录 退出失败 (#13007)

Co-authored-by: feng <1304903146@qq.com>
pull/13008/head
fit2bot 2024-04-12 11:16:58 +08:00 committed by GitHub
parent 3bc8db7c3d
commit 3740a4ad6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -39,8 +39,8 @@ class RedisUserSessionManager:
self.client.hincrby(self.JMS_SESSION_KEY, session_key, -1)
def remove(self, session_key):
self.client.hdel(self.JMS_SESSION_KEY, session_key)
try:
self.client.hdel(self.JMS_SESSION_KEY, session_key)
session_store = import_module(settings.SESSION_ENGINE).SessionStore(session_key)
session_store.delete()
except Exception: