apply suggestions in PR
This commit is contained in:
@@ -561,7 +561,7 @@ async def create_transport(
|
||||
audio_out_enabled=True,
|
||||
# add_wav_header and serializer will be set automatically
|
||||
),
|
||||
"vonage": lambda: VonageVideoConnectorParams(
|
||||
"vonage": lambda: VonageVideoConnectorTransportParams(
|
||||
audio_in_enabled=True,
|
||||
audio_out_enabled=True,
|
||||
vad_analyzer=SileroVADAnalyzer(),
|
||||
|
||||
@@ -864,7 +864,7 @@ class VonageClient:
|
||||
except Exception as exc:
|
||||
logger.error(f"Exception in SDK callback task: {exc}")
|
||||
finally:
|
||||
active_tasks.discard(task)
|
||||
active_tasks.discard(asyncio.current_task())
|
||||
queue.task_done()
|
||||
|
||||
try:
|
||||
|
||||
@@ -1539,8 +1539,10 @@ class TestVonageVideoConnectorTransport:
|
||||
|
||||
# Wait for async processing
|
||||
await self._wait_for_condition(
|
||||
lambda: on_stream_received_mock1.await_count > 0
|
||||
and on_stream_received_mock2.await_count > 0
|
||||
lambda: (
|
||||
on_stream_received_mock1.await_count > 0
|
||||
and on_stream_received_mock2.await_count > 0
|
||||
)
|
||||
)
|
||||
|
||||
# Verify both listeners were called
|
||||
|
||||
Reference in New Issue
Block a user