mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-23 19:19:53 +00:00
Return result of iq.send() for disco requests. Events are still triggered, but now the caller can determine if there was a timeout.
This commit is contained in:
parent
6469cdb4ca
commit
e700a54d11
1 changed files with 2 additions and 2 deletions
|
@ -299,7 +299,7 @@ class xep_0030(base.base_plugin):
|
|||
iq['to'] = jid
|
||||
iq['from'] = dfrom
|
||||
iq['disco_info']['node'] = node
|
||||
iq.send()
|
||||
return iq.send()
|
||||
|
||||
def getItems(self, jid, node='', dfrom=None):
|
||||
iq = self.xmpp.Iq()
|
||||
|
@ -307,7 +307,7 @@ class xep_0030(base.base_plugin):
|
|||
iq['to'] = jid
|
||||
iq['from'] = dfrom
|
||||
iq['disco_items']['node'] = node
|
||||
iq.send()
|
||||
return iq.send()
|
||||
|
||||
def add_feature(self, feature, node='main'):
|
||||
self.add_node(node)
|
||||
|
|
Loading…
Reference in a new issue