Comparison

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
comparison
equal deleted inserted replaced
1206:3ec37e678b46 1207:6842bacddfcb
26 end 26 end
27 27
28 function cancel(handle, call_handler) 28 function cancel(handle, call_handler)
29 dns.cancel(handle); 29 dns.cancel(handle);
30 if call_handler then 30 if call_handler then
31 handle[4]() 31 coroutine.resume(handle[4]);
32 end 32 end
33 end 33 end
34 34
35 function new_async_socket(sock) 35 function new_async_socket(sock)
36 local newconn = {}; 36 local newconn = {};