HTTPDownloaderCurl: Fix crash in worker thread

This commit is contained in:
Stenzek
2025-11-30 17:29:24 +10:00
parent 682d0075bd
commit 547d3495ed

View File

@@ -193,7 +193,8 @@ void HTTPDownloaderCurl::WorkerThreadEntryPoint()
ProcessQueuedActions();
// Perform curl operations
err = curl_multi_perform(m_multi_handle, nullptr);
int running_handles;
err = curl_multi_perform(m_multi_handle, &running_handles);
if (err != CURLM_OK)
ERROR_LOG("curl_multi_perform() returned {}", static_cast<int>(err));