Add timeout_callback to a bunch of plugins as a parameter

This commit is contained in:
mathieui
2015-09-04 01:05:56 +02:00
parent 804b23d390
commit 00a0698720
10 changed files with 80 additions and 48 deletions
+4 -2
View File
@@ -70,7 +70,8 @@ class XEP_0092(BasePlugin):
iq['software_version']['os'] = self.os
iq.send()
def get_version(self, jid, ifrom=None, timeout=None, callback=None):
def get_version(self, jid, ifrom=None, timeout=None, callback=None,
timeout_callback=None):
"""
Retrieve the software version of a remote agent.
@@ -82,4 +83,5 @@ class XEP_0092(BasePlugin):
iq['from'] = ifrom
iq['type'] = 'get'
iq['query'] = Version.namespace
return iq.send(timeout=timeout, callback=callback)
return iq.send(timeout=timeout, callback=callback,
timeout_callback=timeout_callback)