diff options
author | mathieui <mathieui@mathieui.net> | 2016-06-05 00:19:24 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2016-06-05 00:19:24 +0200 |
commit | 1a00a08b7d9995837f979f199a0ef55c81aa0f3f (patch) | |
tree | c16a4c2d784f9591de5a4d0cfa640bf2e107221c | |
parent | 90ea2a34117e5f44b3c76ee5afcec06ab51c1057 (diff) | |
download | slixmpp-1a00a08b7d9995837f979f199a0ef55c81aa0f3f.tar.gz slixmpp-1a00a08b7d9995837f979f199a0ef55c81aa0f3f.tar.bz2 slixmpp-1a00a08b7d9995837f979f199a0ef55c81aa0f3f.tar.xz slixmpp-1a00a08b7d9995837f979f199a0ef55c81aa0f3f.zip |
Make XEP-0186 return futures as well
Improving the api if the developer wants to wait on them.
-rw-r--r-- | slixmpp/plugins/xep_0186/invisible_command.py | 4 |
1 files 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) |