Tidy up roster_received event and callbacks.
This commit is contained in:
parent
7734aee7ad
commit
7391288668
1 changed files with 2 additions and 2 deletions
|
@ -223,12 +223,12 @@ class ClientXMPP(BaseXMPP):
|
|||
iq['roster']['ver'] = self.client_roster.version
|
||||
|
||||
if not block and callback is None:
|
||||
callback = lambda resp: self._handle_roster(resp, request=True)
|
||||
callback = lambda resp: self._handle_roster(resp)
|
||||
|
||||
response = iq.send(block, timeout, callback)
|
||||
self.event('roster_received', response)
|
||||
|
||||
if block:
|
||||
self.event('roster_received', response)
|
||||
self._handle_roster(response)
|
||||
return response
|
||||
|
||||
|
|
Loading…
Reference in a new issue