Handle callback return value case.

This commit is contained in:
Lance Stout 2011-05-20 13:46:12 -04:00
parent 9f1648328f
commit 6a07e7cbe3

View file

@ -234,7 +234,7 @@ class ClientXMPP(BaseXMPP):
'subscription': subscription,
'groups': groups}}
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['type'] == 'result'