diff sat/core/sat_main.py @ 2791:034c88e9cd93

core (findByFeatures): fixed services discovery
author Goffi <goffi@goffi.org>
date Sun, 20 Jan 2019 18:20:55 +0100
parents 003b8b4b56a7
children c161a294fffd
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]
             )