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 = {}; |