mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2025-08-18 10:55:36 +00:00
fix not calling curl_global_init in release mode
This commit is contained in:
parent
fb420eac1b
commit
623437e864
@ -34,7 +34,8 @@ int main(int argc, char* argv[]) {
|
||||
#endif // WIN32
|
||||
DebugPrintTID();
|
||||
// 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
|
||||
std::thread t1(loop);
|
||||
t1.detach();
|
||||
|
Loading…
x
Reference in New Issue
Block a user