mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-18 00:55:50 +00:00
fix: ensure proper cleanup of client managers on channel disconnect
This commit is contained in:
parent
a3511d6363
commit
a71dcb31a0
1 changed files with 3 additions and 1 deletions
|
|
@ -1990,7 +1990,9 @@ class ProxyServer:
|
|||
logger.info(f"Non-owner cleanup: Removed stream buffer for channel {channel_id}")
|
||||
|
||||
if channel_id in self.client_managers:
|
||||
del self.client_managers[channel_id]
|
||||
client_manager = self.client_managers.pop(channel_id)
|
||||
if hasattr(client_manager, 'stop'):
|
||||
client_manager.stop()
|
||||
logger.info(f"Non-owner cleanup: Removed client manager for channel {channel_id}")
|
||||
|
||||
# Stop profile managers owned by this worker, but only for profiles
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue