diff --git a/gateway/session.py b/gateway/session.py index 96013df513940..a8c67691adcdf 100644 --- a/gateway/session.py +++ b/gateway/session.py @@ -807,9 +807,7 @@ def suspend_recently_active(self, max_age_seconds: int = 120) -> int: to avoid resetting long-idle sessions that are harmless to resume. Returns the number of sessions that were suspended. """ - import time as _time - - cutoff = _time.time() - max_age_seconds + cutoff = _now() - timedelta(seconds=max_age_seconds) count = 0 with self._lock: self._ensure_loaded_locked()