|
@ -287,9 +287,12 @@ int32_t LP_sock_check(char *typestr,void *ctx,char *myipaddr,int32_t pubsock,int |
|
|
str = Broadcaststr; |
|
|
str = Broadcaststr; |
|
|
Broadcaststr = 0; |
|
|
Broadcaststr = 0; |
|
|
if ( (argjson= cJSON_Parse(str)) != 0 ) |
|
|
if ( (argjson= cJSON_Parse(str)) != 0 ) |
|
|
|
|
|
{ |
|
|
|
|
|
if ( LP_tradecommand(ctx,myipaddr,pubsock,argjson,0,0) <= 0 ) |
|
|
{ |
|
|
{ |
|
|
if ( (retstr= stats_JSON(ctx,myipaddr,pubsock,argjson,remoteaddr,0)) != 0 ) |
|
|
if ( (retstr= stats_JSON(ctx,myipaddr,pubsock,argjson,remoteaddr,0)) != 0 ) |
|
|
free(retstr); |
|
|
free(retstr); |
|
|
|
|
|
} |
|
|
//LP_tradecommand(ctx,myipaddr,pubsock,argjson,0,0);
|
|
|
//LP_tradecommand(ctx,myipaddr,pubsock,argjson,0,0);
|
|
|
free_json(argjson); |
|
|
free_json(argjson); |
|
|
} |
|
|
} |
|
|