From d482ec32a47a57b16e15b64eac12015707c0607d Mon Sep 17 00:00:00 2001 From: Narr the Reg Date: Tue, 21 Feb 2023 18:23:16 -0600 Subject: yuzu: Set a lower timeout for discord presence --- src/yuzu/discord_impl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/yuzu/discord_impl.cpp b/src/yuzu/discord_impl.cpp index de0c307d4..29cec7acd 100644 --- a/src/yuzu/discord_impl.cpp +++ b/src/yuzu/discord_impl.cpp @@ -75,6 +75,8 @@ void DiscordImpl::Update() { // New Check for game cover httplib::Client cli(game_cover_url); + cli.set_connection_timeout(std::chrono::seconds(3)); + cli.set_read_timeout(std::chrono::seconds(3)); if (auto res = cli.Head(fmt::format("/images/game/boxart/{}.png", icon_name).c_str())) { if (res->status == 200) { -- cgit v1.2.3