From 984e266e16bd3397467adda854d13d6cb4ef3a24 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 10 Nov 2017 16:28:05 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_socket.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_socket.c b/iguana/exchanges/LP_socket.c index 8abbb6a3c..efcee767f 100644 --- a/iguana/exchanges/LP_socket.c +++ b/iguana/exchanges/LP_socket.c @@ -1073,10 +1073,13 @@ cJSON *LP_electrumserver(struct iguana_info *coin,char *ipaddr,uint16_t port) } else { - kickval = electrum_kickstart(ep); jaddstr(retjson,"result","success"); jaddstr(retjson,"status","already there"); - jaddnum(retjson,"restart",kickval); + if ( ep->numerrors > 0 ) + { + kickval = electrum_kickstart(ep); + jaddnum(retjson,"restart",kickval); + } } //printf("(%s)\n",jprint(retjson,0)); return(retjson);