Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
11dcf387 by Philipp Hörist at 2018-12-03T20:00:57Z
Dont plug out NonBlockingBind before its finished
- - - - -
1 changed file:
- nbxmpp/auth_nb.py
Changes:
=====================================
nbxmpp/auth_nb.py
=====================================
@@ -631,7 +631,6 @@ class NonBlockingBind(PlugIn):
iq = Protocol('iq', typ='set', payload=[node])
self._owner.SendAndWaitForResponse(
iq, func=self._on_session)
- self.PlugOut()
return
if resp:
log.error('Binding failed: %s.', resp.getTag('error'))
@@ -649,10 +648,11 @@ class NonBlockingBind(PlugIn):
log.error('Session open failed')
self._owner.Connection.start_disconnect()
self._owner.Dispatcher.Event(Realm.CONNECTING,
Event.SESSION_FAILED)
- self.PlugOut()
+ self.PlugOut()
def _on_bind_successful(self):
feats = self._owner.Dispatcher.Stream.features
if feats.getTag('sm', namespace=NS_STREAM_MGMT):
self._owner.Smacks.send_enable()
self._owner.Dispatcher.Event(Realm.CONNECTING, Event.CONNECTION_ACTIVE)
+ self.PlugOut()
View it on GitLab:
https://dev.gajim.org/gajim/python-nbxmpp/commit/11dcf387a89ff4c5d1cf2b842d6d61e8c439fb4f
--
View it on GitLab:
https://dev.gajim.org/gajim/python-nbxmpp/commit/11dcf387a89ff4c5d1cf2b842d6d61e8c439fb4f
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits