Skip to content

Commit

Permalink
xcap_client: libssl thread executor for curl_global_init()
Browse files Browse the repository at this point in the history
  • Loading branch information
space88man committed Feb 26, 2024
1 parent f582259 commit f5164b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/xcap_client/xcap_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#include "../../core/mem/shm_mem.h"
#include "../../core/rpc.h"
#include "../../core/rpc_lookup.h"
#define KSR_RTHREAD_NEED_4L
#define KSR_RTHREAD_SKIP_P
#include "../../core/rthreads.h"
#include "../presence/utils_func.h"
#include "xcap_functions.h"
#include "xcap_client.h"
Expand Down Expand Up @@ -140,7 +143,7 @@ static int mod_init(void)
xcap_dbf.close(xcap_db);
xcap_db = NULL;

curl_global_init(CURL_GLOBAL_ALL);
run_thread4L((_thread_proto4L)curl_global_init, CURL_GLOBAL_ALL);

if(periodical_query) {
register_timer(query_xcap_update, 0, query_period);
Expand Down

0 comments on commit f5164b3

Please sign in to comment.