# HG changeset patch # User Jonathan G Rennison # Date 2024-01-04 01:02:51 # Node ID 0b49553295f09779ff801957cf05223521c77389 # Parent de66297ff4e7534cc2be1f29379b83fca35157d0 Fix: curl_global_cleanup called before libcurl HTTP thread exited diff --git a/src/network/core/http_curl.cpp b/src/network/core/http_curl.cpp --- a/src/network/core/http_curl.cpp +++ b/src/network/core/http_curl.cpp @@ -276,8 +276,6 @@ void NetworkHTTPInitialize() void NetworkHTTPUninitialize() { - curl_global_cleanup(); - _http_thread_exit = true; /* Queues must be cleared (and the queue CV signalled) after _http_thread_exit is set to ensure that the HTTP thread can exit */ @@ -293,4 +291,6 @@ void NetworkHTTPUninitialize() if (_http_thread.joinable()) { _http_thread.join(); } + + curl_global_cleanup(); }