From 5bf69dca763d6ef4fe21636ff1b606d042942e71 Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 14 Feb 2017 00:46:36 +0100 Subject: [PATCH] Return a Future on clientxmpp.get_roster() --- slixmpp/clientxmpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slixmpp/clientxmpp.py b/slixmpp/clientxmpp.py index dd018fa2..891a9fb6 100644 --- a/slixmpp/clientxmpp.py +++ b/slixmpp/clientxmpp.py @@ -255,7 +255,7 @@ class ClientXMPP(BaseXMPP): orig_cb(resp) callback = wrapped - iq.send(callback, timeout, timeout_callback) + return iq.send(callback, timeout, timeout_callback) def _reset_connection_state(self, event=None): #TODO: Use stream state here