mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-18 00:55:50 +00:00
Modify client TTL handling in client_manager.py
Updated client manager to refresh TTL without updating last_active timestamp.
This commit is contained in:
parent
cf1aef6747
commit
fd9ca28316
1 changed files with 1 additions and 2 deletions
|
|
@ -158,9 +158,8 @@ class ClientManager:
|
|||
if time_since_heartbeat < self.heartbeat_interval * 0.5: # Only heartbeat at half interval minimum
|
||||
continue
|
||||
|
||||
# Only update clients that remain
|
||||
# Only refresh TTL - do NOT update last_active
|
||||
client_key = f"ts_proxy:channel:{self.channel_id}:clients:{client_id}"
|
||||
pipe.hset(client_key, "last_active", str(current_time))
|
||||
pipe.expire(client_key, self.client_ttl)
|
||||
|
||||
# Keep client in the set with TTL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue