Skip to content

Commit

Permalink
main: Add missing parameter to _session_check calls
Browse files Browse the repository at this point in the history
Apparently forgotten. Practical impact is unclear, though.

Signed-off-by: Jan Kiszka <[email protected]>
  • Loading branch information
jan-kiszka authored and chombourger committed Apr 30, 2024
1 parent 9fd166c commit 539f550
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mtda/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 539f550

Please sign in to comment.