Diff

net/adns.lua @ 3326:fb95015bc646

net.dns, net.adns: Update resolver:cancel() API so that a table doesn't need to be created for each cancellation internal to net.dns
author Matthew Wild <mwild1@gmail.com>
date Mon, 05 Jul 2010 12:05:46 +0100
parent 3325:b3117a1da834
child 3956:32ec833c2edf
line wrap: on
line diff
--- a/net/adns.lua	Mon Jul 05 11:51:17 2010 +0100
+++ b/net/adns.lua	Mon Jul 05 12:05:46 2010 +0100
@@ -38,7 +38,7 @@
 
 function cancel(handle, call_handler, reason)
 	log("warn", "Cancelling DNS lookup for %s", tostring(handle[3]));
-	dns.cancel(handle, call_handler);
+	dns.cancel(handle[1], handle[2], handle[3], handle[4], call_handler);
 end
 
 function new_async_socket(sock, resolver)