From 54ef95a9f9c3e424f44760d066745fcbca516855 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 18 Jun 2017 12:51:46 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_nativeDEX.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 1e998c33c..18d50e2b5 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -319,11 +319,6 @@ void LP_mainloop(char *myipaddr,struct LP_peerinfo *mypeer,uint16_t mypubport,in } } //LP_privkey_updates(pubsock,passphrase); - if ( OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)stats_rpcloop,(void *)&myport) != 0 ) - { - printf("error launching stats rpcloop for port.%u\n",myport); - exit(-1); - } while ( 1 ) { if ( 0 && (rand() % 100) == 0 ) @@ -381,6 +376,11 @@ void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,double profit nn_setsockopt(pullsock,NN_SOL_SOCKET,NN_RCVBUF,&maxsize,sizeof(maxsize)); } } + if ( OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)stats_rpcloop,(void *)&myport) != 0 ) + { + printf("error launching stats rpcloop for port.%u\n",myport); + exit(-1); + } if ( IAMLP != 0 ) { if ( myipaddr != 0 )