From 615e66effc9dce2654cfa6367215277d39307f68 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 12 Jun 2017 09:55:25 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_nativeDEX.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 3fa9306a9..c40a89892 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -104,7 +104,9 @@ int32_t LP_pullsock_check(char *myipaddr,int32_t pubsock,int32_t pullsock,double } else if ( jstr(argjson,"method") != 0 && strcmp(jstr(argjson,"method"),"publish") == 0 ) { - jdelete(argjson,"method2"); + if ( jobj(argjson,"method2") != 0 ) + jdelete(argjson,"method2"); + jaddstr(argjson,"method2","broadcast"); printf("pub?.(%s)\n",jprint(argjson,0)); if ( pubsock >= 0 && (reqjson= LP_dereference(argjson,"publish")) != 0 ) {