From 8a90605a648f0336090507cf89b66214388ba8cd Mon Sep 17 00:00:00 2001 From: AAGaming Date: Sat, 3 Aug 2024 13:39:14 -0400 Subject: actually implement timeout in the http_request_legacy handler --- backend/decky_loader/utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/decky_loader/utilities.py b/backend/decky_loader/utilities.py index 599be64a..c88a2f93 100644 --- a/backend/decky_loader/utilities.py +++ b/backend/decky_loader/utilities.py @@ -199,7 +199,7 @@ class Utilities: async def http_request_legacy(self, method: str, url: str, extra_opts: Any = {}, timeout: int | None = None): async with ClientSession() as web: - res = await web.request(method, url, ssl=helpers.get_ssl_context(), **extra_opts) + res = await web.request(method, url, ssl=helpers.get_ssl_context(), timeout=timeout **extra_opts) text = await res.text() return { "status": res.status, -- cgit v1.2.3