diff sat/memory/memory.py @ 2597:9446f1ea9eac

core: discoFindByFeatures now return only available resources
author Goffi <goffi@goffi.org>
date Fri, 25 May 2018 10:52:01 +0200
parents 26edcf3a30eb
children 56f94936df1e
line wrap: on
line diff
--- a/sat/memory/memory.py	Fri May 25 10:52:01 2018 +0200
+++ b/sat/memory/memory.py	Fri May 25 10:52:01 2018 +0200
@@ -655,6 +655,7 @@
         @raise exceptions.UnknownEntityError: if entity is not in cache
         @raise ValueError: entity_jid has a resource
         """
+        # FIXME: is there a need to keep cache data for resources which are not connected anymore?
         if entity_jid.resource:
             raise ValueError("getAllResources must be used with a bare jid (got {})".format(entity_jid))
         profile_cache = self._getProfileCache(client)