changeset 3325 | b3117a1da834 |
parent 3324 | 070c8ba71b76 |
child 3326 | fb95015bc646 |
--- a/net/dns.lua Mon Jul 05 11:50:21 2010 +0100 +++ b/net/dns.lua Mon Jul 05 11:51:17 2010 +0100 @@ -830,9 +830,12 @@ return response; end -function resolver:cancel(data) +function resolver:cancel(data, call_handler) local cos = get(self.wanted, unpack(data, 1, 3)); if cos then + if call_handler then + coroutine.resume(data[4]); + end cos[data[4]] = nil; end end