fix: fix review comments and test

This commit is contained in:
Abhishek Kumar 2026-07-07 21:15:17 +05:30
parent 1a3f6ac09a
commit bd69382a90
2 changed files with 1 additions and 4 deletions

View file

@ -686,9 +686,6 @@ async def _handle_telephony_websocket(
except RuntimeError:
# WebSocket already closed, ignore
pass
finally:
await call_concurrency.unregister_active_call(workflow_run_id)
@router.post("/inbound/run")
async def handle_inbound_run(request: Request):

View file

@ -393,4 +393,4 @@ async def test_smallwebrtc_run_reaching_telephony_websocket_closes_without_runni
)
assert mock_db.update_workflow_run.await_count == 0
assert provider_lookup.await_count == 0
mock_concurrency.unregister_active_call.assert_awaited_once_with(501)
mock_concurrency.unregister_active_call.assert_not_awaited()