Skip to content

Commit

Permalink
Set m_curlRunning flag in UrlClient before spawning task threads (#2311)
Browse files Browse the repository at this point in the history
  • Loading branch information
matteblair committed Dec 24, 2021
1 parent 78b4aab commit 91a678e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/common/urlClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ UrlClient::UrlClient(Options options) : m_options(options) {

// Start the curl thread
m_curlHandle = curl_multi_init();
m_curlWorker = std::make_unique<std::thread>(&UrlClient::curlLoop, this);
m_curlRunning = true;
m_curlWorker = std::make_unique<std::thread>(&UrlClient::curlLoop, this);

// Init at least one task to avoid checking whether m_tasks is empty in
// startPendingRequests()
Expand Down

0 comments on commit 91a678e

Please sign in to comment.