fix update_details (wrong indent)

This commit is contained in:
Stefan Bethge 2006-10-09 17:48:32 +00:00
parent 0b1c124d10
commit f405de3fc1
1 changed files with 8 additions and 9 deletions

View File

@ -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()