Browse Source
Merge pull request #9847 from german77/timeout
yuzu: Set a lower timeout for discord presence
pull/15/merge
liamwhite
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
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) { |
|
|
|
|