net/adns.lua

changeset 1207
6842bacddfcb
parent 1203
23725bfdeed5
child 1208
5f992ddc9685
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 = {};

mercurial