mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
fix 0ns delay
This commit is contained in:
parent
6782b1d9ec
commit
71308ee0a3
1 changed files with 1 additions and 1 deletions
|
@ -509,7 +509,7 @@ impl Swarm {
|
|||
Ok(bot) => return bot,
|
||||
Err(e) => {
|
||||
disconnects += 1;
|
||||
let delay = (Duration::from_secs(5) * 2u32.pow(disconnects))
|
||||
let delay = (Duration::from_secs(5) * 2u32.pow(disconnects.min(16)))
|
||||
.min(Duration::from_secs(15));
|
||||
let username = account.username.clone();
|
||||
error!("Error joining as {username}: {e}. Waiting {delay:?} and trying again.");
|
||||
|
|
Loading…
Add table
Reference in a new issue