jl777 7 years ago
parent
commit
fecf041c1b
  1. 4
      iguana/exchanges/LP_peers.c

4
iguana/exchanges/LP_peers.c

@ -86,7 +86,7 @@ void LP_cmdchannels()
{ {
HASH_ITER(hh,LP_peerinfos,peer,tmp) HASH_ITER(hh,LP_peerinfos,peer,tmp)
{ {
if ( peer->pairsock == 0 ) if ( peer->pairsock <= 0 )
LP_cmdchannel(peer); LP_cmdchannel(peer);
} }
} }
@ -101,7 +101,7 @@ void LP_peer_pairsock(bits256 pubkey)
{ {
if ( bits256_cmp(pubkey,peer->pubkey) == 0 ) if ( bits256_cmp(pubkey,peer->pubkey) == 0 )
{ {
LP_cmdchannel(peer); peer->pairsock = -1;
break; break;
} }
} }

Loading…
Cancel
Save