Просмотр исходного кода

yuzu: Set a lower timeout for discord presence

Narr the Reg 3 лет назад
Родитель
Сommit
d482ec32a4
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      src/yuzu/discord_impl.cpp

+ 2 - 0
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).c_str())) {
             if (res->status == 200) {