fix: manage WebRTC pipeline shutdown
This commit is contained in:
@@ -41,7 +41,10 @@ async def lifespan(_app: FastAPI):
|
||||
await sync_interface_definitions()
|
||||
await sync_default_tools()
|
||||
await recover_interrupted_documents()
|
||||
yield
|
||||
try:
|
||||
yield
|
||||
finally:
|
||||
await voice_webrtc.shutdown_active_sessions()
|
||||
|
||||
|
||||
app = FastAPI(title="AI Video Assistant 平台 - 后端", lifespan=lifespan)
|
||||
|
||||
Reference in New Issue
Block a user