From ef33a70f15da7dda0ff5539dc446a44321651c8d Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 8 Jan 2016 19:25:55 -0300 Subject: [PATCH] test --- iguana/iguana_peers.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index 709066ee4..a01a86b43 100755 --- a/iguana/iguana_peers.c +++ b/iguana/iguana_peers.c @@ -944,7 +944,10 @@ void iguana_dedicatedloop(struct iguana_info *coin,struct iguana_peer *addr) { flag += iguana_pollsendQ(coin,addr); if ( addr->dead != 0 ) + { + printf("%s is dead\n",addr->ipaddr); break; + } } if ( flag == 0 ) { @@ -952,7 +955,10 @@ void iguana_dedicatedloop(struct iguana_info *coin,struct iguana_peer *addr) { flag += iguana_pollrecv(coin,addr,buf,bufsize); if ( addr->dead != 0 ) + { + printf("%s is dead\n",addr->ipaddr); break; + } } if ( flag == 0 ) { @@ -968,7 +974,10 @@ void iguana_dedicatedloop(struct iguana_info *coin,struct iguana_peer *addr) { flag += iguana_pollQsPT(coin,addr); if ( addr->dead != 0 ) + { + printf("%s is dead\n",addr->ipaddr); break; + } } } if ( flag == 0 )