changeset 2791:034c88e9cd93

core (findByFeatures): fixed services discovery
author Goffi <goffi@goffi.org>
date Sun, 20 Jan 2019 18:20:55 +0100
parents 19ab67e28822
children 441b536e28ed
files sat/core/sat_main.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sat/core/sat_main.py	Sun Jan 20 15:46:32 2019 +0100
+++ b/sat/core/sat_main.py	Sun Jan 20 18:20:55 2019 +0100
@@ -872,6 +872,7 @@
         found_roster = {}
         if service:
             services_jids = yield self.findFeaturesSet(client, namespaces)
+            services_jids = list(services_jids)  # we need a list to map results below
             services_infos  = yield defer.DeferredList(
                 [self.getDiscoInfos(client, service_jid) for service_jid in services_jids]
             )