From 9a6913053deac2616daf0f15ca71f485490060c1 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 19 Feb 2009 09:52:23 +0000 Subject: [PATCH] acknowledge roster pushes. Fixes #4826 --- src/common/connection_handlers.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 8e96be771..7a38a8032 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -1547,6 +1547,12 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco, for group in item.getTags('group'): groups.append(group.getData()) self.dispatch('ROSTER_INFO', (jid, name, sub, ask, groups)) + if not self.connection or self.connected < 2: + raise common.xmpp.NodeProcessed + server = gajim.config.get_per('accounts', self.name, 'hostname') + reply = common.xmpp.Iq(typ='result', attrs={'id': iq_obj.getID()}, + to=server, frm=iq_obj.getTo(), xmlns=None) + self.connection.send(reply) raise common.xmpp.NodeProcessed def _VersionCB(self, con, iq_obj): @@ -2400,6 +2406,7 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco, raise common.xmpp.NodeProcessed def _getRosterCB(self, con, iq_obj): + log.debug('getRosterCB') if not self.connection: return self.connection.getRoster(self._on_roster_set)