From f0e8f647f49c93669267fa89ecb0c7cbf537b222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Tue, 21 Nov 2023 23:03:09 +0100 Subject: fix: SASL2: Make login test mode work --- nbxmpp/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nbxmpp/client.py b/nbxmpp/client.py index 5a8c02e..e86f6a0 100644 --- a/nbxmpp/client.py +++ b/nbxmpp/client.py @@ -669,14 +669,14 @@ class Client(Observable): # other connection methods if an error happensafterwards self._connect_successful = True + self.state = StreamState.WAIT_FOR_FEATURES + + elif self.state == StreamState.WAIT_FOR_FEATURES: if self._stream_authenticated and self._mode.is_login_test: self.notify('login-successful') self.disconnect() return - self.state = StreamState.WAIT_FOR_FEATURES - - elif self.state == StreamState.WAIT_FOR_FEATURES: if stanza.getName() != 'features': self._log.error('Invalid response: %s', stanza) self._disconnect_with_error( -- cgit v1.2.3