Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Bethge <stefan@lanpartei.de>2006-10-09 21:48:32 +0400
committerStefan Bethge <stefan@lanpartei.de>2006-10-09 21:48:32 +0400
commitf405de3fc1688d999ecc3f66ce8408e07174e625 (patch)
tree55cd6065015ee6ca5d5cbd35f421687437006ae8
parent0b1c124d105e331f73bc4528882bd5cfc72bf246 (diff)
fix update_details (wrong indent)
-rw-r--r--src/common/zeroconf/connection_zeroconf.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/common/zeroconf/connection_zeroconf.py b/src/common/zeroconf/connection_zeroconf.py
index fde3e3068..c75ea4331 100644
--- a/src/common/zeroconf/connection_zeroconf.py
+++ b/src/common/zeroconf/connection_zeroconf.py
@@ -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()