diff --git a/slixmpp/plugins/xep_0030/disco.py b/slixmpp/plugins/xep_0030/disco.py index cd7d9d63..391859c0 100644 --- a/slixmpp/plugins/xep_0030/disco.py +++ b/slixmpp/plugins/xep_0030/disco.py @@ -315,13 +315,13 @@ class XEP_0030(BasePlugin): domain = self.xmpp.boundjid.domain if not cached or domain not in self.domain_infos: - infos = [self.get_info( - domain, timeout=timeout, **iqkwargs)] + infos = [asyncio.create_task(self.get_info( + domain, timeout=timeout, **iqkwargs))] iq_items = await self.get_items( domain, timeout=timeout, **iqkwargs) items = iq_items['disco_items']['items'] infos += [ - self.get_info(item[0], timeout=timeout, **iqkwargs) + asyncio.create_task(self.get_info(item[0], timeout=timeout, **iqkwargs)) for item in items] info_futures, _ = await asyncio.wait( infos,