transports(daily): fix aiohttp timeout

This commit is contained in:
Aleix Conchillo Flaqué
2024-10-24 10:43:15 -07:00
parent 88362db034
commit 2e6b5d1843

View File

@@ -935,7 +935,9 @@ class DailyTransport(BaseTransport):
url = f"{self._params.api_url}/dialin/pinlessCallUpdate"
try:
async with session.post(url, headers=headers, json=data, timeout=10) as r:
async with session.post(
url, headers=headers, json=data, timeout=aiohttp.ClientTimeout(total=10)
) as r:
if r.status != 200:
text = await r.text()
logger.error(