diff options
| author | 2023-02-21 20:39:19 -0500 | |
|---|---|---|
| committer | 2023-02-21 20:39:19 -0500 | |
| commit | 8f3e2a1b48a4f83c90a3b8bf10dd1dc661a69958 (patch) | |
| tree | a7b5890fc80015f49b83ac9edd20837a53e4f102 /src | |
| parent | Merge pull request #9846 from merryhime/type-const (diff) | |
| parent | yuzu: Set a lower timeout for discord presence (diff) | |
| download | yuzu-8f3e2a1b48a4f83c90a3b8bf10dd1dc661a69958.tar.gz yuzu-8f3e2a1b48a4f83c90a3b8bf10dd1dc661a69958.tar.xz yuzu-8f3e2a1b48a4f83c90a3b8bf10dd1dc661a69958.zip | |
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 978ffef33..ac2fc1bcb 100644 --- a/src/yuzu/discord_impl.cpp +++ b/src/yuzu/discord_impl.cpp | |||
| @@ -75,6 +75,8 @@ void DiscordImpl::Update() { | |||
| 75 | 75 | ||
| 76 | // New Check for game cover | 76 | // New Check for game cover |
| 77 | httplib::Client cli(game_cover_url); | 77 | httplib::Client cli(game_cover_url); |
| 78 | cli.set_connection_timeout(std::chrono::seconds(3)); | ||
| 79 | cli.set_read_timeout(std::chrono::seconds(3)); | ||
| 78 | 80 | ||
| 79 | if (auto res = cli.Head(fmt::format("/images/game/boxart/{}.png", icon_name))) { | 81 | if (auto res = cli.Head(fmt::format("/images/game/boxart/{}.png", icon_name))) { |
| 80 | if (res->status == 200) { | 82 | if (res->status == 200) { |