Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2023-11-22 01:03:09 +0300
committerPhilipp Hörist <philipp@hoerist.com>2023-11-22 01:03:09 +0300
commitf0e8f647f49c93669267fa89ecb0c7cbf537b222 (patch)
tree6a4374c6694c0177b9f862ae91bb29b2f97c7a20
parent11289b51ec897298c761b2606937892b0112d378 (diff)
fix: SASL2: Make login test mode work
-rw-r--r--nbxmpp/client.py6
1 files 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(