aboutsummaryrefslogtreecommitdiffstats
path: root/net/adns.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-05-28 02:16:43 +0100
committerMatthew Wild <mwild1@gmail.com>2009-05-28 02:16:43 +0100
commita5333a75d9a52ff77aee2a93f45c3a17c4469407 (patch)
treea9939d68002120f84b5a462d7634736b6479652c /net/adns.lua
parent1a1358157d7a45ca710f700c64b80b2389a49e39 (diff)
downloadprosody-a5333a75d9a52ff77aee2a93f45c3a17c4469407.tar.gz
prosody-a5333a75d9a52ff77aee2a93f45c3a17c4469407.zip
net.adns: Fix for calling handler when cancelling DNS lookup
Diffstat (limited to 'net/adns.lua')
-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