Unverified Commit 02650c9c authored by BaiJiangJie's avatar BaiJiangJie Committed by GitHub

Merge pull request #3582 from jumpserver/dev_session

[Update] 添加清除幽灵mysql会话
parents e6c369cf 75c60472
......@@ -251,7 +251,7 @@ class Session(OrgModelMixin):
return cls.objects.filter(is_finished=False)
def is_active(self):
if self.protocol in ['ssh', 'telnet', 'rdp']:
if self.protocol in ['ssh', 'telnet', 'rdp', 'mysql']:
key = self.ACTIVE_CACHE_KEY_PREFIX.format(self.id)
return bool(cache.get(key))
return True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment