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.
This commit is contained in:
parent
16fcb3a3fc
commit
1a0b7ee163
1 changed files with 3 additions and 1 deletions
|
@ -1451,6 +1451,8 @@ class Connection(CommonConnection, ConnectionHandlers):
|
||||||
return
|
return
|
||||||
if hasattr(con, 'Resource'):
|
if hasattr(con, 'Resource'):
|
||||||
self.server_resource = con.Resource
|
self.server_resource = con.Resource
|
||||||
|
if con._registered_name is not None:
|
||||||
|
log.info('Bound JID: %s', con._registered_name)
|
||||||
self.registered_name = con._registered_name
|
self.registered_name = con._registered_name
|
||||||
if app.config.get_per('accounts', self.name, 'anonymous_auth'):
|
if app.config.get_per('accounts', self.name, 'anonymous_auth'):
|
||||||
# Get jid given by server
|
# Get jid given by server
|
||||||
|
|
Loading…
Add table
Reference in a new issue