diff options
| author | mat <github@matdoes.dev> | 2023-02-15 19:04:14 +0000 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2023-02-15 19:04:14 +0000 |
| commit | 6782b1d9ecc80fea232d8a80d54d0a196123ea42 (patch) | |
| tree | 26572a486f643f77670417b7ac6e596a4351a836 /azalea/src/swarm | |
| parent | f382e2838f8f8b67627f4ae54ee851cc4ee1e7ae (diff) | |
| download | azalea-drasl-6782b1d9ecc80fea232d8a80d54d0a196123ea42.tar.xz | |
max reconnect wait from 120s to 15s
Diffstat (limited to 'azalea/src/swarm')
| -rw-r--r-- | azalea/src/swarm/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea/src/swarm/mod.rs b/azalea/src/swarm/mod.rs index d6932807..f46e1d29 100644 --- a/azalea/src/swarm/mod.rs +++ b/azalea/src/swarm/mod.rs @@ -510,7 +510,7 @@ impl Swarm { Err(e) => { disconnects += 1; let delay = (Duration::from_secs(5) * 2u32.pow(disconnects)) - .min(Duration::from_secs(120)); + .min(Duration::from_secs(15)); let username = account.username.clone(); error!("Error joining as {username}: {e}. Waiting {delay:?} and trying again."); tokio::time::sleep(delay).await; |
