Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
cf4f0a76e9
  1. 8
      iguana/iguana_accept.c

8
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 )
{

Loading…
Cancel
Save