aboutsummaryrefslogtreecommitdiffstats
path: root/net/dns.lua
diff options
context:
space:
mode:
Diffstat (limited to 'net/dns.lua')
-rw-r--r--net/dns.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/dns.lua b/net/dns.lua
index 1b8a88fa..6a74abd8 100644
--- a/net/dns.lua
+++ b/net/dns.lua
@@ -830,9 +830,12 @@ function resolver:feed(sock, packet)
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