1
0
Fork 0
forked from suyu/suyu

Merge pull request #9847 from german77/timeout

yuzu: Set a lower timeout for discord presence
This commit is contained in:
liamwhite 2023-02-21 20:39:19 -05:00 committed by GitHub
commit 8f3e2a1b48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {