net.dns: Call :cancel() on the current resolver instead of the prototype

Wed, 14 Jul 2010 15:32:14 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 14 Jul 2010 15:32:14 +0100
changeset 3360
6c07b64e972c
parent 3359
69442c83602e
child 3361
8d4e7c231d3e

net.dns: Call :cancel() on the current resolver instead of the prototype

net/dns.lua file | annotate | diff | comparison | revisions
--- a/net/dns.lua	Wed Jul 14 01:36:08 2010 +0100
+++ b/net/dns.lua	Wed Jul 14 15:32:14 2010 +0100
@@ -699,7 +699,7 @@
 					return self.timeout;
 				else
 					-- Tried everything, failed
-					resolver:cancel(qclass, qtype, qname, co, true);
+					self:cancel(qclass, qtype, qname, co, true);
 				end
 			end
 		end)

mercurial