diff options
author | Kim Alvefur <zash@zash.se> | 2020-06-13 14:40:41 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-06-13 14:40:41 +0200 |
commit | 2861bb873a547ef5c1655fa3fa72c98a2af7411f (patch) | |
tree | 018d7b64d029e86f240c4e4953aa4d83830fad51 /plugins | |
parent | 6b9051637f99f8c03be6864871be169fbfe5c537 (diff) | |
download | prosody-2861bb873a547ef5c1655fa3fa72c98a2af7411f.tar.gz prosody-2861bb873a547ef5c1655fa3fa72c98a2af7411f.zip |
mod_admin_shell: Update for async.wait_for rename
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_admin_shell.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index 0154cc65..8f966e6e 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -1160,7 +1160,7 @@ function def_env.xmpp:ping(localhost, remotehost, timeout) local iq = st.iq{ from=localhost, to=remotehost, type="get", id=new_id()} :tag("ping", {xmlns="urn:xmpp:ping"}); local time_start = time.now(); - local ret, err = async.wait(module:context(localhost):send_iq(iq, nil, timeout)); + local ret, err = async.wait_for(module:context(localhost):send_iq(iq, nil, timeout)); if ret then return true, ("pong from %s in %gs"):format(ret.stanza.attr.from, time.now() - time_start); else @@ -1182,7 +1182,7 @@ end function def_env.dns:lookup(name, typ, class) local resolver = get_resolver(self.session); - local ret, err = async.wait(resolver:lookup_promise(name, typ, class)); + local ret, err = async.wait_for(resolver:lookup_promise(name, typ, class)); if ret then return true, ret; elseif err then |