diff options
author | mathieui <mathieui@mathieui.net> | 2018-10-09 12:34:56 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2018-10-09 12:34:56 +0200 |
commit | 809c50000204f8724bac80cb3359a690fdbc839e (patch) | |
tree | 6212494e366fd6fc6138993bca86df67f70717e7 /slixmpp/plugins/xep_0163.py | |
parent | dda4e18b810e5f76bca78c80dfb8a3d32e4b5bcf (diff) | |
download | slixmpp-809c50000204f8724bac80cb3359a690fdbc839e.tar.gz slixmpp-809c50000204f8724bac80cb3359a690fdbc839e.tar.bz2 slixmpp-809c50000204f8724bac80cb3359a690fdbc839e.tar.xz slixmpp-809c50000204f8724bac80cb3359a690fdbc839e.zip |
Add the loop parameters at places where it has been forgotten
Diffstat (limited to 'slixmpp/plugins/xep_0163.py')
-rw-r--r-- | slixmpp/plugins/xep_0163.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/slixmpp/plugins/xep_0163.py b/slixmpp/plugins/xep_0163.py index 047ca5d3..4c302efa 100644 --- a/slixmpp/plugins/xep_0163.py +++ b/slixmpp/plugins/xep_0163.py @@ -62,7 +62,10 @@ class XEP_0163(BasePlugin): for ns in namespace: self.xmpp['xep_0030'].add_feature('%s+notify' % ns, jid=jid) - asyncio.ensure_future(self.xmpp['xep_0115'].update_caps(jid)) + asyncio.ensure_future( + self.xmpp['xep_0115'].update_caps(jid), + loop=self.xmpp.loop, + ) def remove_interest(self, namespace, jid=None): """ @@ -81,7 +84,10 @@ class XEP_0163(BasePlugin): for ns in namespace: self.xmpp['xep_0030'].del_feature(jid=jid, feature='%s+notify' % namespace) - asyncio.ensure_future(self.xmpp['xep_0115'].update_caps(jid)) + asyncio.ensure_future( + self.xmpp['xep_0115'].update_caps(jid), + loop=self.xmpp.loop, + ) def publish(self, stanza, node=None, id=None, options=None, ifrom=None, timeout_callback=None, callback=None, timeout=None): |