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 | fe97d2e70dbb0b74c804071bcf9fbb9a95c3cd96 (patch) | |
| tree | a7b5890fc80015f49b83ac9edd20837a53e4f102 /src | |
| parent | 9fc17e8fdb35e916d529d58f51cce227d4138b6d (diff) | |
| parent | 22ecd014347c30e0503f546491b6c7d08eb72c3f (diff) | |
Merge pull request #9847 from german77/timeout
yuzu: Set a lower timeout for discord presence
Diffstat (limited to 'src')
| -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 978ffef332..ac2fc1bcb6 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) { |
