mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 19:19:54 +00:00
Handle callback return value case.
This commit is contained in:
parent
9f1648328f
commit
6a07e7cbe3
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ class ClientXMPP(BaseXMPP):
|
||||||
'subscription': subscription,
|
'subscription': subscription,
|
||||||
'groups': groups}}
|
'groups': groups}}
|
||||||
response = iq.send(block, timeout, callback)
|
response = iq.send(block, timeout, callback)
|
||||||
if response in [False, None]:
|
if response in [False, None] or not isinstance(response, Iq):
|
||||||
return response
|
return response
|
||||||
return response['type'] == 'result'
|
return response['type'] == 'result'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue