1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-31 18:39:10 +00:00

Fix: curl_global_cleanup called before libcurl HTTP thread exited

This commit is contained in:
Jonathan G Rennison
2024-01-04 01:02:51 +00:00
parent 58ac05202d
commit 811a024b06

View File

@@ -276,8 +276,6 @@ void NetworkHTTPInitialize()
void NetworkHTTPUninitialize() void NetworkHTTPUninitialize()
{ {
curl_global_cleanup();
_http_thread_exit = true; _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 */ /* 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()) { if (_http_thread.joinable()) {
_http_thread.join(); _http_thread.join();
} }
curl_global_cleanup();
} }