Fix auth-auth-disconnect-reconnect loop
Both euphoxide and cove would try to authenticate, leading to the server disconnecting the session. The Instance would then immediately reconnect because the previous initial connection was successful. Rinse and repeat
This commit is contained in:
parent
1be5fb5f39
commit
c2e739abf9
1 changed files with 1 additions and 8 deletions
|
|
@ -205,14 +205,7 @@ impl Room {
|
||||||
let instance_name = &self.instance.config().name;
|
let instance_name = &self.instance.config().name;
|
||||||
let data = ok_or_return!(&packet.content);
|
let data = ok_or_return!(&packet.content);
|
||||||
match data {
|
match data {
|
||||||
Data::BounceEvent(_) => {
|
Data::BounceEvent(_) => {}
|
||||||
if let Some(password) = &self.instance.config().password {
|
|
||||||
// Try to authenticate with the configured password, but no
|
|
||||||
// promises if it doesn't work. In particular, we only ever
|
|
||||||
// try this password once.
|
|
||||||
let _ = self.auth(password.clone());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Data::DisconnectEvent(d) => {
|
Data::DisconnectEvent(d) => {
|
||||||
warn!("{instance_name}: disconnected for reason {:?}", d.reason);
|
warn!("{instance_name}: disconnected for reason {:?}", d.reason);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue