net.adns: Fix for calling handler when cancelling DNS lookup

Thu, 28 May 2009 02:16:43 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 28 May 2009 02:16:43 +0100
changeset 1207
6842bacddfcb
parent 1206
3ec37e678b46
child 1208
5f992ddc9685

net.adns: Fix for calling handler when cancelling DNS lookup

net/adns.lua file | annotate | diff | comparison | revisions
--- 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
 

mercurial