From 539f550fae6aa121a7abd30d3d03f3bca933c48c Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Mon, 29 Apr 2024 07:56:18 +0200 Subject: [PATCH] main: Add missing parameter to _session_check calls Apparently forgotten. Practical impact is unclear, though. Signed-off-by: Jan Kiszka --- mtda/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mtda/main.py b/mtda/main.py index 6b83259e..49d89166 100644 --- a/mtda/main.py +++ b/mtda/main.py @@ -167,7 +167,7 @@ def config_set_power_timeout(self, timeout, session=None): self._power_timeout = timeout if timeout == 0: self._power_expiry = None - self._session_check() + self._session_check(session) self.mtda.debug(3, f"main.config_set_power_timeout(): {result}") return result @@ -187,7 +187,7 @@ def config_set_session_timeout(self, timeout, session=None): left = self._sessions[s] - now if left > timeout: self._sessions[s] = now + timeout - self._session_check() + self._session_check(session) self.mtda.debug(3, f"main.config_set_session_timeout(): {result}") return result