Keep retrying PC Brutal Peeps patch after room load

This commit is contained in:
2026-06-07 04:12:44 -04:00
parent fc1fe53b63
commit 892b12535c
2 changed files with 26 additions and 8 deletions
+2 -8
View File
@@ -1208,15 +1208,9 @@ asio::awaitable<void> send_brutal_peeps_hp_patch_bb(std::shared_ptr<Client> c, i
co_await prepare_client_for_patches(c);
const bool is_pc_bp_patch = (c->version() == Version::PC_V2);
const size_t max_attempts = is_pc_bp_patch ? 5 : 1;
const size_t max_attempts = 1;
for (size_t attempt = 1; attempt <= max_attempts; attempt++) {
if (is_pc_bp_patch) {
asio::steady_timer timer(co_await asio::this_coro::executor);
timer.expires_after(std::chrono::milliseconds(750));
co_await timer.async_wait(asio::use_awaitable);
}
auto promises = is_pc_bp_patch
? send_brutal_peeps_hp_patch_pc_now(c, tier)
: send_brutal_peeps_hp_patch_bb_now(c, tier);
@@ -1246,7 +1240,7 @@ asio::awaitable<void> send_brutal_peeps_hp_patch_bb(std::shared_ptr<Client> c, i
}
}
if (!is_pc_bp_patch || any_success || !any_zero_return || !c->channel->connected()) {
if (!is_pc_bp_patch || any_success || !any_zero_return || !c->channel->connected() || (attempt >= max_attempts)) {
break;
}