diff options
Diffstat (limited to 'backend/decky_loader/injector.py')
| -rw-r--r-- | backend/decky_loader/injector.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/decky_loader/injector.py b/backend/decky_loader/injector.py index 39b5b15d..ded58193 100644 --- a/backend/decky_loader/injector.py +++ b/backend/decky_loader/injector.py @@ -4,7 +4,7 @@ from asyncio import sleep from logging import getLogger from typing import Any, Callable, List, TypedDict, Dict -from aiohttp import ClientSession +from aiohttp import ClientSession, ClientTimeout from aiohttp.client_exceptions import ClientConnectorError, ClientOSError from asyncio.exceptions import TimeoutError import uuid @@ -374,7 +374,7 @@ async def get_tabs() -> List[Tab]: while True: try: async with ClientSession() as web: - res = await web.get(f"{BASE_ADDRESS}/json", timeout=3) + res = await web.get(f"{BASE_ADDRESS}/json", timeout=ClientTimeout(total=3)) except ClientConnectorError: if not na: logger.debug("Steam isn't available yet. Wait for a moment...") |
