diff options
author | Philipp Hörist <forenjunkie@chello.at> | 2017-09-06 22:24:12 +0300 |
---|---|---|
committer | Philipp Hörist <forenjunkie@chello.at> | 2017-09-06 22:26:40 +0300 |
commit | 1a0b7ee163f00e7742dc54f6c2a0eefce68fe0b4 (patch) | |
tree | b8973b4080b23834f55b10d27ef2a66fa1e0e861 | |
parent | 16fcb3a3fcf7bdf9b742f055ffff0c5e9fa532e0 (diff) |
Dont lose own JID from bind
_registered_name is None on a smacks resume.
Gajim creates on every connection attempt a new nbxmpp.NonBlockingClient
instance. This is why _registered_name is None when we go through a
smacks resume, because there is no bind event, and the new NonBlockingClient
instance has no knowledge of the previous successful bind.
-rw-r--r-- | gajim/common/connection.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gajim/common/connection.py b/gajim/common/connection.py index a1c529003..9a06f173f 100644 --- a/gajim/common/connection.py +++ b/gajim/common/connection.py @@ -1451,7 +1451,9 @@ class Connection(CommonConnection, ConnectionHandlers): return if hasattr(con, 'Resource'): self.server_resource = con.Resource - self.registered_name = con._registered_name + if con._registered_name is not None: + log.info('Bound JID: %s', con._registered_name) + self.registered_name = con._registered_name if app.config.get_per('accounts', self.name, 'anonymous_auth'): # Get jid given by server old_jid = app.get_jid_from_account(self.name) |