From 6a07e7cbe3e995f44ca3ba75a0ff83616269cf5a Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Fri, 20 May 2011 13:46:12 -0400 Subject: Handle callback return value case. --- sleekxmpp/clientxmpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' -- cgit v1.2.3