aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/adns.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/adns.lua b/net/adns.lua
index 6062da73..45fe74f0 100644
--- a/net/adns.lua
+++ b/net/adns.lua
@@ -28,7 +28,7 @@ end
function cancel(handle, call_handler)
dns.cancel(handle);
if call_handler then
- handle[4]()
+ coroutine.resume(handle[4]);
end
end