fixed "id peers" so that stale nodes disappear.

This commit is contained in:
gardners 2012-05-22 06:36:32 +09:30
parent 904663ef6c
commit 62b400fe23

View File

@ -1000,7 +1000,8 @@ int overlay_mdp_poll()
for(bin=0;bin<overlay_bin_count;bin++)
for(slot=0;slot<overlay_bin_size;slot++)
{
if (!overlay_nodes[bin][slot].sid[0])
if ((!overlay_nodes[bin][slot].sid[0])
||(overlay_nodes[bin][slot].best_link_score<1))
{
continue; }
if ((count>=sid_num)&&(i<max_sids)) {