Fix. reset lcurl_easy_t::multi pointer when info_read function remove easy handle.

This commit is contained in:
Alexey Melnichuk 2016-09-27 19:26:13 +03:00
parent 9a1270fde6
commit b2e9474c6b

View File

@ -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);
} }