mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-24 03:00:15 +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 = self.Iq()
|
||||||
iq['type'] = 'get'
|
iq['type'] = 'get'
|
||||||
iq.enable('roster')
|
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)
|
response = iq.send(block, timeout, callback)
|
||||||
|
|
||||||
if callback is None:
|
if block:
|
||||||
return self._handle_roster(response, request=True)
|
return self._handle_roster(response, request=True)
|
||||||
|
|
||||||
def _handle_connected(self, event=None):
|
def _handle_connected(self, event=None):
|
||||||
|
|
Loading…
Reference in a new issue