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:
Diffstat (limited to 'nbxmpp/client.py')
-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(