From fecf041c1bf2b70e7a7e30f7d682a8658f77687a Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 4 Feb 2018 18:13:11 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_peers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_peers.c b/iguana/exchanges/LP_peers.c index de9bc44f7..371b1d533 100644 --- a/iguana/exchanges/LP_peers.c +++ b/iguana/exchanges/LP_peers.c @@ -86,7 +86,7 @@ void LP_cmdchannels() { HASH_ITER(hh,LP_peerinfos,peer,tmp) { - if ( peer->pairsock == 0 ) + if ( peer->pairsock <= 0 ) LP_cmdchannel(peer); } } @@ -101,7 +101,7 @@ void LP_peer_pairsock(bits256 pubkey) { if ( bits256_cmp(pubkey,peer->pubkey) == 0 ) { - LP_cmdchannel(peer); + peer->pairsock = -1; break; } }