diff --git a/iguana/exchanges/LP_unspents.c b/iguana/exchanges/LP_unspents.c index 50ed24999..bbc765525 100644 --- a/iguana/exchanges/LP_unspents.c +++ b/iguana/exchanges/LP_unspents.c @@ -275,7 +275,7 @@ void LPinit(uint16_t port,double profitmargin) for (i=1; inumpeers != LP_numpeers && (peer->notify_ipaddr[0] == 0 || peer->notify_port == 0) ) + if ( peer->numpeers < LP_numpeers && (peer->notify_ipaddr[0] == 0 || peer->notify_port == 0) ) { strcpy(peer->notify_ipaddr,LP_peerinfos[0].ipaddr); peer->notify_port = LP_peerinfos[0].port;