mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-04 00:47:23 +00:00
Fix for random server list not showing
This commit is contained in:
parent
f875adc473
commit
5be1b6ba9a
@ -31,7 +31,6 @@ std::string HTTP_REQUEST(const std::string& IP,int port){
|
|||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
if(res != CURLE_OK)return "-1";
|
if(res != CURLE_OK)return "-1";
|
||||||
}
|
}
|
||||||
curl_global_cleanup();
|
|
||||||
Lock.unlock();
|
Lock.unlock();
|
||||||
return readBuffer;
|
return readBuffer;
|
||||||
}
|
}
|
||||||
@ -82,12 +81,10 @@ int Download(const std::string& URL,const std::string& Path,bool close){
|
|||||||
curl_easy_setopt(curl, CURLOPT_USE_SSL, CURLUSESSL_ALL);
|
curl_easy_setopt(curl, CURLOPT_USE_SSL, CURLUSESSL_ALL);
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
|
|
||||||
if(res != CURLE_OK)return res;
|
if(res != CURLE_OK)return res;
|
||||||
}
|
}
|
||||||
if(file.stream)fclose(file.stream);
|
if(file.stream)fclose(file.stream);
|
||||||
if(!close)SecureMods();
|
if(!close)SecureMods();
|
||||||
curl_global_cleanup();
|
|
||||||
std::cout << std::endl;
|
std::cout << std::endl;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user