diff options
author | sfan5 <sfan5@live.de> | 2021-06-23 15:22:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-23 15:22:31 +0200 |
commit | c60a146e2291f7a55a3e5fd0447bd393b063ab1c (patch) | |
tree | 7a0810ef78f43866eb899145d6afdb36d99f2720 /src/httpfetch.cpp | |
parent | cec0dfcbbda1e11e5ff2f45e58ea393d0437d7c6 (diff) | |
download | minetest-c60a146e2291f7a55a3e5fd0447bd393b063ab1c.tar.gz minetest-c60a146e2291f7a55a3e5fd0447bd393b063ab1c.tar.bz2 minetest-c60a146e2291f7a55a3e5fd0447bd393b063ab1c.zip |
Rework Settings to support arbitrary hierarchies (#11352)
Diffstat (limited to 'src/httpfetch.cpp')
-rw-r--r-- | src/httpfetch.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/httpfetch.cpp b/src/httpfetch.cpp index 6137782ff..1307bfec3 100644 --- a/src/httpfetch.cpp +++ b/src/httpfetch.cpp @@ -761,10 +761,12 @@ void httpfetch_cleanup() { verbosestream<<"httpfetch_cleanup: cleaning up"<<std::endl; - g_httpfetch_thread->stop(); - g_httpfetch_thread->requestWakeUp(); - g_httpfetch_thread->wait(); - delete g_httpfetch_thread; + if (g_httpfetch_thread) { + g_httpfetch_thread->stop(); + g_httpfetch_thread->requestWakeUp(); + g_httpfetch_thread->wait(); + delete g_httpfetch_thread; + } curl_global_cleanup(); } |