Skip to content
Snippets Groups Projects
Commit f405de3f authored by sb's avatar sb
Browse files

fix update_details (wrong indent)

parent 0b1c124d
No related branches found
No related tags found
No related merge requests found
......@@ -265,15 +265,14 @@ class ConnectionZeroconf(ConnectionHandlersZeroconf):
def update_details(self):
if self.connection:
port = gajim.config.get_per('accounts', gajim.ZEROCONF_ACC_NAME, 'custom_port')
if self.connection:
if port != self.port:
self.port = port
last_msg = self.connection.last_msg
self.disconnect()
if not self.connect(self.status, last_msg):
return
if self.status != 'invisible':
self.connection.announce()
if port != self.port:
self.port = port
last_msg = self.connection.last_msg
self.disconnect()
if not self.connect(self.status, last_msg):
return
if self.status != 'invisible':
self.connection.announce()
else:
self.reannounce()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment