From 6a07e7cbe3e995f44ca3ba75a0ff83616269cf5a Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Fri, 20 May 2011 13:46:12 -0400 Subject: [PATCH] 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 c518a4c..92186e9 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'