From 68228f80eb3b52912a08d39e371cc66e8656b172 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 31 May 2017 20:49:35 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_commands.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index 4406189db..e45d792d6 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -256,9 +256,9 @@ int32_t LP_command(struct LP_peerinfo *mypeer,int32_t pubsock,cJSON *argjson,uin if ( strcmp(method,"price") == 0 || strcmp(method,"request") == 0 ) { retval = 1; - if ( utxo->swappending == 0 && utxo->pair < 0 ) + if ( utxo->swappending == 0 ) { - if ( utxo->pair >= 0 ) + if ( strcmp(method,"request") == 0 && utxo->pair >= 0 ) nn_close(utxo->pair), utxo->pair = -1; if ( (price= LP_price(base,rel)) != 0. ) {