mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-06-18 01:50:53 +00:00
fix not calling curl_global_init in release mode
This commit is contained in:
+2
-1
@@ -34,7 +34,8 @@ int main(int argc, char* argv[]) {
|
|||||||
#endif // WIN32
|
#endif // WIN32
|
||||||
DebugPrintTID();
|
DebugPrintTID();
|
||||||
// curl needs to be initialized to properly deallocate its resources later
|
// curl needs to be initialized to properly deallocate its resources later
|
||||||
Assert(curl_global_init(CURL_GLOBAL_DEFAULT) == CURLE_OK);
|
auto ret = curl_global_init(CURL_GLOBAL_DEFAULT);
|
||||||
|
Assert(ret == CURLE_OK);
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
std::thread t1(loop);
|
std::thread t1(loop);
|
||||||
t1.detach();
|
t1.detach();
|
||||||
|
|||||||
Reference in New Issue
Block a user