fix: wrong function name
All checks were successful
Build Worker Base and Application Images / check-base-changes (push) Successful in 8s
Build Worker Base and Application Images / build-base (push) Has been skipped
Build Worker Base and Application Images / build-docker (push) Successful in 2m50s
Build Worker Base and Application Images / deploy-stack (push) Successful in 9s

This commit is contained in:
ziesorx 2025-09-25 03:27:33 +07:00
parent c2c80222f1
commit f4b898ccd1

View file

@ -466,7 +466,10 @@ def initialize_stream_manager(max_streams: int = 10):
global shared_stream_manager
# Release old manager if exists
if shared_stream_manager:
# Stop all existing streams gracefully
shared_stream_manager.cleanup()
try:
# Stop all existing streams gracefully
shared_stream_manager.stop_all()
except Exception as e:
logger.warning(f"Error stopping previous stream manager: {e}")
shared_stream_manager = StreamManager(max_streams=max_streams)
return shared_stream_manager