From c2e739abf9aab74be1fe0ab3ff475529bea67a7d Mon Sep 17 00:00:00 2001 From: Joscha Date: Mon, 23 Jan 2023 22:50:39 +0100 Subject: [PATCH] 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 --- src/euph/room.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/euph/room.rs b/src/euph/room.rs index 41bd7ec..1235ca5 100644 --- a/src/euph/room.rs +++ b/src/euph/room.rs @@ -205,14 +205,7 @@ impl Room { let instance_name = &self.instance.config().name; let data = ok_or_return!(&packet.content); match data { - 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::BounceEvent(_) => {} Data::DisconnectEvent(d) => { warn!("{instance_name}: disconnected for reason {:?}", d.reason); }