Diff

net/adns.lua @ 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
parent 1203:23725bfdeed5
child 1208:5f992ddc9685
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