diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-02-21 20:39:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-21 20:39:19 -0500 |
commit | 8f3e2a1b48a4f83c90a3b8bf10dd1dc661a69958 (patch) | |
tree | a7b5890fc80015f49b83ac9edd20837a53e4f102 /src/yuzu/discord_impl.cpp | |
parent | 11f6bb153251462bf55afa59ba99b98f9c9ecaa1 (diff) | |
parent | d482ec32a47a57b16e15b64eac12015707c0607d (diff) |
Merge pull request #9847 from german77/timeout
yuzu: Set a lower timeout for discord presence
Diffstat (limited to 'src/yuzu/discord_impl.cpp')
-rw-r--r-- | src/yuzu/discord_impl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/yuzu/discord_impl.cpp b/src/yuzu/discord_impl.cpp index 978ffef33..ac2fc1bcb 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))) { if (res->status == 200) { |