mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 19:19:54 +00:00
parent
6b9a55e62d
commit
a86935a42f
1 changed files with 5 additions and 1 deletions
|
@ -237,9 +237,13 @@ class ClientXMPP(BaseXMPP):
|
|||
iq = self.Iq()
|
||||
iq['type'] = 'get'
|
||||
iq.enable('roster')
|
||||
|
||||
if not block and callback is None:
|
||||
callback = lambda resp: self._handle_roster(resp, request=True)
|
||||
|
||||
response = iq.send(block, timeout, callback)
|
||||
|
||||
if callback is None:
|
||||
if block:
|
||||
return self._handle_roster(response, request=True)
|
||||
|
||||
def _handle_connected(self, event=None):
|
||||
|
|
Loading…
Reference in a new issue