Fix. reset lcurl_easy_t::multi
pointer when info_read
function remove easy handle.
This commit is contained in:
parent
9a1270fde6
commit
b2e9474c6b
@ -214,6 +214,7 @@ static int lcurl_multi_info_read(lua_State *L){
|
|||||||
if(remove){
|
if(remove){
|
||||||
//! @fixme We ignore any errors
|
//! @fixme We ignore any errors
|
||||||
if(CURLM_OK == curl_multi_remove_handle(p->curl, e->curl)){
|
if(CURLM_OK == curl_multi_remove_handle(p->curl, e->curl)){
|
||||||
|
e->multi = NULL;
|
||||||
lua_pushnil(L);
|
lua_pushnil(L);
|
||||||
lua_rawsetp(L, -3, e->curl);
|
lua_rawsetp(L, -3, e->curl);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user