Use asyncio.create_task to fix asyncio.wait deprecation notice
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
83dd5d62c4
commit
fa3e690154
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Version xxx:
|
||||||
|
2022-xx-xx Maxime “pep” Buquet <pep@bouah.net>
|
||||||
|
* Added:
|
||||||
|
- Coroutines in asyncio.wait is now deprecated. Added create_task calls
|
||||||
Version 0.8.0:
|
Version 0.8.0:
|
||||||
2022-08-23 Maxime “pep” Buquet <pep@bouah.net>
|
2022-08-23 Maxime “pep” Buquet <pep@bouah.net>
|
||||||
* Breaking:
|
* Breaking:
|
||||||
|
|
|
@ -290,8 +290,8 @@ class XEP_0384(BasePlugin):
|
||||||
if self.backend_loaded:
|
if self.backend_loaded:
|
||||||
self.xmpp['xep_0163'].add_interest(OMEMO_DEVICES_NS)
|
self.xmpp['xep_0163'].add_interest(OMEMO_DEVICES_NS)
|
||||||
await asyncio.wait([
|
await asyncio.wait([
|
||||||
self._set_device_list(),
|
asyncio.create_task(self._set_device_list()),
|
||||||
self._publish_bundle(),
|
asyncio.create_task(self._publish_bundle()),
|
||||||
])
|
])
|
||||||
self._initial_publish_done = True
|
self._initial_publish_done = True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue