diff --git a/iguana/exchanges/LP_network.c b/iguana/exchanges/LP_network.c index eef7658b7..38f03ede7 100644 --- a/iguana/exchanges/LP_network.c +++ b/iguana/exchanges/LP_network.c @@ -274,7 +274,7 @@ void gc_loop(void *arg) { flag = 0; LP_millistats_update(&LP_gcloop_stats); - portable_mutex_lock(&LP_gcmutex); + //portable_mutex_lock(&LP_gcmutex); DL_FOREACH_SAFE(LP_garbage_collector,req,rtmp) { DL_DELETE(LP_garbage_collector,req); @@ -282,7 +282,7 @@ void gc_loop(void *arg) free(req); flag++; } - portable_mutex_unlock(&LP_gcmutex); + //portable_mutex_unlock(&LP_gcmutex); if ( flag == 0 ) usleep(5000); else printf("gc_loop.%d\n",flag); diff --git a/iguana/exchanges/stats.c b/iguana/exchanges/stats.c index 2cc747ae0..b4d680e03 100644 --- a/iguana/exchanges/stats.c +++ b/iguana/exchanges/stats.c @@ -733,10 +733,10 @@ void LP_rpc_processreq(void *_ptr) free(space); free(jsonbuf); closesocket(sock); - portable_mutex_lock(&LP_gcmutex); + //portable_mutex_lock(&LP_gcmutex); DL_APPEND(LP_garbage_collector,req); spawned--; - portable_mutex_unlock(&LP_gcmutex); + //portable_mutex_unlock(&LP_gcmutex); } extern int32_t IAMLP;