Skip to content

Commit 547d349

Browse files
committed
HTTPDownloaderCurl: Fix crash in worker thread
1 parent 682d007 commit 547d349

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/util/http_downloader_curl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ void HTTPDownloaderCurl::WorkerThreadEntryPoint()
193193
ProcessQueuedActions();
194194

195195
// Perform curl operations
196-
err = curl_multi_perform(m_multi_handle, nullptr);
196+
int running_handles;
197+
err = curl_multi_perform(m_multi_handle, &running_handles);
197198
if (err != CURLM_OK)
198199
ERROR_LOG("curl_multi_perform() returned {}", static_cast<int>(err));
199200

0 commit comments

Comments
 (0)