aboutsummaryrefslogtreecommitdiffstats
path: root/net/adns.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-07-05 12:05:46 +0100
committerMatthew Wild <mwild1@gmail.com>2010-07-05 12:05:46 +0100
commitcad77ed8cfa2bdb6f93ea65c90a17c624bdc7e6e (patch)
treece887a9f5552da1a84ab5efa2624848a80731ef7 /net/adns.lua
parente23e53d3b8d5af13e22fbbb41768e72790d91c3d (diff)
downloadprosody-cad77ed8cfa2bdb6f93ea65c90a17c624bdc7e6e.tar.gz
prosody-cad77ed8cfa2bdb6f93ea65c90a17c624bdc7e6e.zip
net.dns, net.adns: Update resolver:cancel() API so that a table doesn't need to be created for each cancellation internal to net.dns
Diffstat (limited to 'net/adns.lua')
-rw-r--r--net/adns.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/adns.lua b/net/adns.lua
index 7fadbe3f..d0151c8c 100644
--- a/net/adns.lua
+++ b/net/adns.lua
@@ -38,7 +38,7 @@ end
function cancel(handle, call_handler, reason)
log("warn", "Cancelling DNS lookup for %s", tostring(handle[3]));
- dns.cancel(handle, call_handler);
+ dns.cancel(handle[1], handle[2], handle[3], handle[4], call_handler);
end
function new_async_socket(sock, resolver)