aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/discord_impl.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-02-21 18:23:16 -0600
committerNarr the Reg <juangerman-13@hotmail.com>2023-02-21 18:23:58 -0600
commit22ecd014347c30e0503f546491b6c7d08eb72c3f (patch)
treea497a1eb0dbdc17f6e9ab4dedacc600fe757e5a8 /src/yuzu/discord_impl.cpp
parentdbc6b2134338c5c845c742595a69d75aa6486000 (diff)
yuzu: Set a lower timeout for discord presence
Diffstat (limited to 'src/yuzu/discord_impl.cpp')
-rw-r--r--src/yuzu/discord_impl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/yuzu/discord_impl.cpp b/src/yuzu/discord_impl.cpp
index de0c307d45..29cec7acda 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) {