Changeset

1207:6842bacddfcb

net.adns: Fix for calling handler when cancelling DNS lookup
author Matthew Wild <mwild1@gmail.com>
date Thu, 28 May 2009 02:16:43 +0100 (2009-05-28)
parents 1206:3ec37e678b46
children 1208:5f992ddc9685
files net/adns.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/adns.lua	Wed May 27 14:03:12 2009 +0100
+++ b/net/adns.lua	Thu May 28 02:16:43 2009 +0100
@@ -28,7 +28,7 @@
 function cancel(handle, call_handler)
 	dns.cancel(handle);
 	if call_handler then
-		handle[4]()
+		coroutine.resume(handle[4]);
 	end
 end