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. ) {