summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-05-20 13:46:12 -0400
committerLance Stout <lancestout@gmail.com>2011-05-20 13:46:12 -0400
commit6a07e7cbe3e995f44ca3ba75a0ff83616269cf5a (patch)
treea76cd783084cd1bbe3a13a90e4a8a8c9c831c4ba
parent9f1648328f17b608651989606b9cf2636cdcfbec (diff)
downloadslixmpp-6a07e7cbe3e995f44ca3ba75a0ff83616269cf5a.tar.gz
slixmpp-6a07e7cbe3e995f44ca3ba75a0ff83616269cf5a.tar.bz2
slixmpp-6a07e7cbe3e995f44ca3ba75a0ff83616269cf5a.tar.xz
slixmpp-6a07e7cbe3e995f44ca3ba75a0ff83616269cf5a.zip
Handle callback return value case.
-rw-r--r--sleekxmpp/clientxmpp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/clientxmpp.py b/sleekxmpp/clientxmpp.py
index c518a4ce..92186e91 100644
--- a/sleekxmpp/clientxmpp.py
+++ b/sleekxmpp/clientxmpp.py
@@ -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'