Keep retrying PC Brutal Peeps patch after room load
This commit is contained in:
+2
-8
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user