#2781 - Actioning review comments

This commit is contained in:
Charlie Crane
2024-08-08 15:48:44 +01:00
parent 116ac725b0
commit 665c53d880
3 changed files with 63 additions and 29 deletions

View File

@@ -1278,6 +1278,10 @@ class UserSessionManager(Service):
if self.local_session:
if self.local_session.last_active_step + self.local_session_timeout_steps <= timestep:
self._timeout_session(self.local_session)
for session in self.remote_sessions:
remote_session = self.remote_sessions[session]
if remote_session.last_active_step + self.remote_session_timeout_steps <= timestep:
self._timeout_session(remote_session)
def _timeout_session(self, session: UserSession) -> None:
"""