Diff

net/dns.lua @ 3360:6c07b64e972c

net.dns: Call :cancel() on the current resolver instead of the prototype
author Matthew Wild <mwild1@gmail.com>
date Wed, 14 Jul 2010 15:32:14 +0100
parent 3328:5ac4fbbfb74d
child 3512:e344b00f2cc9
line wrap: on
line diff
--- 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)