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

master
Alexey Melnichuk 2016-09-27 19:26:13 +03:00
parent 9a1270fde6
commit b2e9474c6b
1 changed files with 1 additions and 0 deletions

View File

@ -214,6 +214,7 @@ static int lcurl_multi_info_read(lua_State *L){
if(remove){
//! @fixme We ignore any errors
if(CURLM_OK == curl_multi_remove_handle(p->curl, e->curl)){
e->multi = NULL;
lua_pushnil(L);
lua_rawsetp(L, -3, e->curl);
}