mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
fix: resolve thread safety issues and race conditions in core components
This commit is contained in:
parent
63409eabb2
commit
bdb27fcc2c
1 changed files with 0 additions and 6 deletions
|
|
@ -39,8 +39,6 @@ namespace satdump
|
|||
bool ret = 1;
|
||||
char error_buffer[CURL_ERROR_SIZE] = {0};
|
||||
|
||||
curl_global_init(CURL_GLOBAL_ALL);
|
||||
|
||||
curl = curl_easy_init();
|
||||
if (curl)
|
||||
{
|
||||
|
|
@ -88,7 +86,6 @@ namespace satdump
|
|||
if (chunk != NULL)
|
||||
curl_slist_free_all(chunk);
|
||||
}
|
||||
curl_global_cleanup();
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
@ -99,8 +96,6 @@ namespace satdump
|
|||
bool ret = 1;
|
||||
char error_buffer[CURL_ERROR_SIZE] = {0};
|
||||
|
||||
curl_global_init(CURL_GLOBAL_ALL);
|
||||
|
||||
curl = curl_easy_init();
|
||||
if (curl)
|
||||
{
|
||||
|
|
@ -141,7 +136,6 @@ namespace satdump
|
|||
if (chunk != NULL)
|
||||
curl_slist_free_all(chunk);
|
||||
}
|
||||
curl_global_cleanup();
|
||||
return ret;
|
||||
}
|
||||
} // namespace satdump
|
||||
Loading…
Add table
Add a link
Reference in a new issue