net.dns, net.adns: Update resolver:cancel() API so that a table doesn't need to be...
[prosody.git] / net / adns.lua
index 7fadbe3f7e68d2a75c8f40e7a9aede67457a958f..d0151c8c31a4721b3bddfff472d17a32092b4f04 100644 (file)
@@ -38,7 +38,7 @@ end
 
 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)