Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "GameNetwork/GeneralsOnline/HTTP/HTTPManager.h"
#include "../NGMP_include.h"
#include "../OnlineServices_Init.h"
#include "GameNetwork/GeneralsOnline/Vendor/libcurl/curl.h"

HTTPManager::HTTPManager() noexcept
{
Expand Down Expand Up @@ -115,6 +116,9 @@ void HTTPManager::Shutdown()
m_pCurl = nullptr;
}

// Cleanup libcurl globally
curl_global_cleanup();

NetworkLog(ELogVerbosity::LOG_RELEASE, "[HTTPManager] Shutdown complete");
}

Expand Down Expand Up @@ -169,6 +173,9 @@ void HTTPManager::Initialize()
{
CHECK_MAIN_THREAD;

// Initialize libcurl globally - must be called before any curl operations
curl_global_init(CURL_GLOBAL_ALL);

m_pCurl = curl_multi_init();
m_bProxyEnabled = DeterminePlatformProxySettings();
}
Expand Down
Loading