aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-07-14 15:32:14 +0100
committerMatthew Wild <mwild1@gmail.com>2010-07-14 15:32:14 +0100
commit1c51f969daf9fc5e258c548073c2600537a66b47 (patch)
tree235f9b4a00601115f8abe4e2ea798c4d3b7df1f3 /net
parentc63b332ff300b5df997979be4749e30e435ae9d4 (diff)
downloadprosody-1c51f969daf9fc5e258c548073c2600537a66b47.tar.gz
prosody-1c51f969daf9fc5e258c548073c2600537a66b47.zip
net.dns: Call :cancel() on the current resolver instead of the prototype
Diffstat (limited to 'net')
-rw-r--r--net/dns.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dns.lua b/net/dns.lua
index 714d6618..fcc679e3 100644
--- a/net/dns.lua
+++ b/net/dns.lua
@@ -699,7 +699,7 @@ function resolver:query(qname, qtype, qclass) -- - - - - - - - - - -- query
return self.timeout;
else
-- Tried everything, failed
- resolver:cancel(qclass, qtype, qname, co, true);
+ self:cancel(qclass, qtype, qname, co, true);
end
end
end)