diff --git a/sleekxmpp/clientxmpp.py b/sleekxmpp/clientxmpp.py index dc08522d..a93afe56 100644 --- a/sleekxmpp/clientxmpp.py +++ b/sleekxmpp/clientxmpp.py @@ -274,7 +274,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'