From 1a00a08b7d9995837f979f199a0ef55c81aa0f3f Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 5 Jun 2016 00:19:24 +0200 Subject: Make XEP-0186 return futures as well Improving the api if the developer wants to wait on them. --- slixmpp/plugins/xep_0186/invisible_command.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slixmpp/plugins/xep_0186/invisible_command.py b/slixmpp/plugins/xep_0186/invisible_command.py index c20a3a06..88266f6e 100644 --- a/slixmpp/plugins/xep_0186/invisible_command.py +++ b/slixmpp/plugins/xep_0186/invisible_command.py @@ -33,7 +33,7 @@ class XEP_0186(BasePlugin): iq['type'] = 'set' iq['from'] = ifrom iq.enable('invisible') - iq.send(callback=callback, timeout=timeout) + return iq.send(callback=callback, timeout=timeout) def set_visible(self, ifrom=None, callback=None, timeout=None): @@ -41,4 +41,4 @@ class XEP_0186(BasePlugin): iq['type'] = 'set' iq['from'] = ifrom iq.enable('visible') - iq.send(callback=callback, timeout=timeout) + return iq.send(callback=callback, timeout=timeout) -- cgit v1.2.3