fix update_details (wrong indent)
This commit is contained in:
parent
0b1c124d10
commit
f405de3fc1
1 changed files with 8 additions and 9 deletions
|
@ -265,15 +265,14 @@ class ConnectionZeroconf(ConnectionHandlersZeroconf):
|
||||||
def update_details(self):
|
def update_details(self):
|
||||||
if self.connection:
|
if self.connection:
|
||||||
port = gajim.config.get_per('accounts', gajim.ZEROCONF_ACC_NAME, 'custom_port')
|
port = gajim.config.get_per('accounts', gajim.ZEROCONF_ACC_NAME, 'custom_port')
|
||||||
if self.connection:
|
if port != self.port:
|
||||||
if port != self.port:
|
self.port = port
|
||||||
self.port = port
|
last_msg = self.connection.last_msg
|
||||||
last_msg = self.connection.last_msg
|
self.disconnect()
|
||||||
self.disconnect()
|
if not self.connect(self.status, last_msg):
|
||||||
if not self.connect(self.status, last_msg):
|
return
|
||||||
return
|
if self.status != 'invisible':
|
||||||
if self.status != 'invisible':
|
self.connection.announce()
|
||||||
self.connection.announce()
|
|
||||||
else:
|
else:
|
||||||
self.reannounce()
|
self.reannounce()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue