From cf4f0a76e9f771f4e3472f97e6f9d2122a7e3a7f Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 11 Mar 2016 23:35:35 -0300 Subject: [PATCH] test --- iguana/iguana_accept.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_accept.c b/iguana/iguana_accept.c index 28ce34ba2..a4a836d69 100755 --- a/iguana/iguana_accept.c +++ b/iguana/iguana_accept.c @@ -92,11 +92,15 @@ void iguana_acceptloop(void *args) if ( coin->peers.active[i].ipbits == (uint32_t)ipbits && coin->peers.active[i].usock >= 0 ) { printf("found existing peer.(%s) in slot[%d]\n",ipaddr,i); - iguana_iAkill(coin,&coin->peers.active[i],0); - sleep(1); + close(sock); + sock = -1; + //iguana_iAkill(coin,&coin->peers.active[i],0); + //sleep(1); break; } } + if ( sock < 0 ) + continue; /*if ( (uint32_t)ipbits == myinfo->myaddr.myipbits ) {