From f7164d35d29041790be8b9fcd77dd89f75aee789 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 21 Jun 2015 16:23:47 +0200 Subject: Add a wrapper to get_info/get_items functions (and fix caps in the process) --- slixmpp/plugins/xep_0163.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'slixmpp/plugins/xep_0163.py') diff --git a/slixmpp/plugins/xep_0163.py b/slixmpp/plugins/xep_0163.py index e974a808..b85c662c 100644 --- a/slixmpp/plugins/xep_0163.py +++ b/slixmpp/plugins/xep_0163.py @@ -8,6 +8,7 @@ import logging +from slixmpp import asyncio from slixmpp.xmlstream import register_stanza_plugin from slixmpp.plugins.base import BasePlugin, register_plugin @@ -61,7 +62,7 @@ class XEP_0163(BasePlugin): for ns in namespace: self.xmpp['xep_0030'].add_feature('%s+notify' % ns, jid=jid) - self.xmpp['xep_0115'].update_caps(jid) + asyncio.async(self.xmpp['xep_0115'].update_caps(jid)) def remove_interest(self, namespace, jid=None): """ @@ -80,7 +81,7 @@ class XEP_0163(BasePlugin): for ns in namespace: self.xmpp['xep_0030'].del_feature(jid=jid, feature='%s+notify' % namespace) - self.xmpp['xep_0115'].update_caps(jid) + asyncio.async(self.xmpp['xep_0115'].update_caps(jid)) def publish(self, stanza, node=None, id=None, options=None, ifrom=None, timeout_callback=None, callback=None, timeout=None): -- cgit v1.2.3