Prevent corrupting roster_update event with iq result.
This commit is contained in:
parent
0cc14cee4d
commit
4d89d26a1c
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user