Prevent corrupting roster_update event with iq result.

This commit is contained in:
Lance Stout 2012-04-25 11:03:33 -07:00
parent 0cc14cee4d
commit 4d89d26a1c

View File

@ -277,9 +277,11 @@ class ClientXMPP(BaseXMPP):
self.event("roster_update", iq) self.event("roster_update", iq)
if iq['type'] == 'set': if iq['type'] == 'set':
iq.reply() resp = self.Iq(stype='result',
iq.enable('roster') sto=iq['from'],
iq.send() sid=iq['id'])
resp.enable('roster')
resp.send()
def _handle_session_bind(self, jid): def _handle_session_bind(self, jid):
"""Set the client roster to the JID set by the server. """Set the client roster to the JID set by the server.