diff --git a/apps/terminal/models.py b/apps/terminal/models.py index 1bcb17237..372544510 100644 --- a/apps/terminal/models.py +++ b/apps/terminal/models.py @@ -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