Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
2790:19ab67e28822 | 2791:034c88e9cd93 |
---|---|
870 found_service = {} | 870 found_service = {} |
871 found_own = {} | 871 found_own = {} |
872 found_roster = {} | 872 found_roster = {} |
873 if service: | 873 if service: |
874 services_jids = yield self.findFeaturesSet(client, namespaces) | 874 services_jids = yield self.findFeaturesSet(client, namespaces) |
875 services_jids = list(services_jids) # we need a list to map results below | |
875 services_infos = yield defer.DeferredList( | 876 services_infos = yield defer.DeferredList( |
876 [self.getDiscoInfos(client, service_jid) for service_jid in services_jids] | 877 [self.getDiscoInfos(client, service_jid) for service_jid in services_jids] |
877 ) | 878 ) |
878 | 879 |
879 for idx, (success, infos) in enumerate(services_infos): | 880 for idx, (success, infos) in enumerate(services_infos): |