Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
3359:69442c83602e | 3360:6c07b64e972c |
---|---|
697 conn = self:getsocket(o.server); | 697 conn = self:getsocket(o.server); |
698 conn:send(o.packet); | 698 conn:send(o.packet); |
699 return self.timeout; | 699 return self.timeout; |
700 else | 700 else |
701 -- Tried everything, failed | 701 -- Tried everything, failed |
702 resolver:cancel(qclass, qtype, qname, co, true); | 702 self:cancel(qclass, qtype, qname, co, true); |
703 end | 703 end |
704 end | 704 end |
705 end) | 705 end) |
706 end | 706 end |
707 end | 707 end |