Revision 4dc06ae1 topology.c

View differences:

topology.c
73 73
  for (i = 0; i < peerset_size(pset); i++) {
74 74
    if ( (!timerisset(&peers[i].bmap_timestamp) && timercmp(&peers[i].creation_timestamp, &told, <) ) ||
75 75
         ( timerisset(&peers[i].bmap_timestamp) && timercmp(&peers[i].bmap_timestamp, &told, <)     )   ) {
76
      if (peerset_size(pset) > 1) {	// avoid dropping our last link to the world
76
      //if (peerset_size(pset) > 1) {	// avoid dropping our last link to the world
77 77
        topRemoveNeighbour(peers[i].id);
78 78
        remove_peer(peers[i--].id);
79
      }
79
      //}
80 80
    }
81 81
  }
82 82

  

Also available in: Unified diff