From a7fb628f715c65044d60e256a7510a26b23e5e28 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 13 Oct 2017 20:14:51 +0300 Subject: [PATCH] Test --- iguana/exchanges/stats.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/stats.c b/iguana/exchanges/stats.c index e3e0060cd..8e5099814 100644 --- a/iguana/exchanges/stats.c +++ b/iguana/exchanges/stats.c @@ -724,8 +724,12 @@ void stats_rpcloop(void *args) arg64 = ((uint64_t)ipbits << 32) | (sock & 0xffffffff); arg64ptr = malloc(sizeof(arg64)); memcpy(arg64ptr,&arg64,sizeof(arg64)); - //LP_rpc_processreq((void *)&arg64); - if ( OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)LP_rpc_processreq,arg64ptr) != 0 ) + if ( 1 ) + { + LP_rpc_processreq((void *)&arg64); + free(arg64ptr); + } + else if ( OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)LP_rpc_processreq,arg64ptr) != 0 ) { printf("error launching rpc handler on port %d\n",port); }