mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 14:26:04 +00:00
Clarify the reason the swarm can't connect
This commit is contained in:
parent
ec5e4adca0
commit
72e1a2327e
1 changed files with 11 additions and 1 deletions
|
@ -671,7 +671,17 @@ impl Swarm {
|
|||
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.");
|
||||
|
||||
if let JoinError::Disconnect { reason } = &e {
|
||||
error!(
|
||||
"Error joining as {username}, server says: \"{reason}\". Waiting {delay:?} and trying again."
|
||||
);
|
||||
} else {
|
||||
error!(
|
||||
"Error joining as {username}: {e}. Waiting {delay:?} and trying again."
|
||||
);
|
||||
}
|
||||
|
||||
tokio::time::sleep(delay).await;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue