changeset 950:5e8e8a034411

plugin XEP-0045: profileConnected return the deferred, so muc service presence is checked before the end of initialisation
author Goffi <goffi@goffi.org>
date Mon, 31 Mar 2014 12:23:13 +0200
parents b4cd968e30fb
children 027a054c6dda
files src/plugins/plugin_xep_0045.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0045.py	Mon Mar 31 12:23:13 2014 +0200
+++ b/src/plugins/plugin_xep_0045.py	Mon Mar 31 12:23:13 2014 +0200
@@ -83,7 +83,7 @@
         def assign_service(service):
             client = self.host.getClient(profile)
             client.muc_service = service
-        self.getMUCService(profile_key=profile).addCallback(assign_service)
+        return self.getMUCService(profile_key=profile).addCallback(assign_service)
 
     def __check_profile(self, profile):
         """check if profile is used and connected