From 8252529260c7df6465984c76e5083adc58b70e65 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 10 Dec 2005 13:58:09 +0000 Subject: [PATCH] connect_and_init doesn't call init_roster anymore fix the unregister_account bug --- src/common/connection.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/connection.py b/src/common/connection.py index 13c680e96..cfff18dab 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -1726,7 +1726,6 @@ class Connection: if hasattr(con, 'Resource'): self.server_resource = con.Resource if auth: - con.initRoster() self.last_io = time.time() self.connected = 2 return con # return connection @@ -1822,6 +1821,8 @@ class Connection: def connect_and_init(self, show, msg, signed): self.continue_connect_info = [show, msg, signed] self.connection = self.connect_and_auth() + if self.connection: + self.connection.initRoster() def change_status(self, show, msg, sync = False, auto = False): if sync: @@ -2333,7 +2334,7 @@ class Connection: hostname = gajim.config.get_per('accounts', self.name, 'hostname') iq = common.xmpp.Iq(typ = 'set', to = hostname) q = iq.setTag(common.xmpp.NS_REGISTER + ' query').setTag('remove') - self.to_be_sent.append(iq) + self.connection.send(iq) def send_invite(self, room, to, reason=''): '''sends invitation'''