diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2008-08-07 01:37:56 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2008-08-07 01:37:56 +0400 |
commit | c7d33bb68ea91dd8fa2e241509a7258acd1e6cc6 (patch) | |
tree | 19d18dcd45b2104ba95f2812ee53475ec8ab2001 | |
parent | 150979b3aba5dcede5c10c843063cc00c7abe95a (diff) |
register Disconnect handler soon enough
-rw-r--r-- | src/common/connection.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/connection.py b/src/common/connection.py index fadd59548..86c5b7214 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -615,11 +615,11 @@ class Connection(ConnectionHandlers): if _con_type != self._current_type: self.connect_to_next_type() return + con.RegisterDisconnectHandler(self._on_disconnected) if _con_type == 'plain' and gajim.config.get_per('accounts', self.name, 'warn_when_plaintext_connection'): self.dispatch('PLAIN_CONNECTION', (con,)) return True - con.RegisterDisconnectHandler(self._on_disconnected) if _con_type in ('tls', 'ssl') and not hasattr(con.Connection, '_sslContext') and gajim.config.get_per('accounts', self.name, 'warn_when_insecure_ssl_connection') and \ |