mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-22 19:45:37 +01:00
yuzu: Set a lower timeout for discord presence
This commit is contained in:
parent
89221ca7d5
commit
d482ec32a4
@ -75,6 +75,8 @@ void DiscordImpl::Update() {
|
|||||||
|
|
||||||
// New Check for game cover
|
// New Check for game cover
|
||||||
httplib::Client cli(game_cover_url);
|
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).c_str())) {
|
if (auto res = cli.Head(fmt::format("/images/game/boxart/{}.png", icon_name).c_str())) {
|
||||||
if (res->status == 200) {
|
if (res->status == 200) {
|
||||||
|
Loading…
Reference in New Issue
Block a user