Revision 793894a9

View differences:

topology.c
28 28
  timersub(&tnow, &tout_bmap, &told);
29 29
  peers = peerset_get_peers(pset);
30 30
  for (i = 0; i < peerset_size(pset); i++) {
31
    if (timerisset(&peers[i].bmap_timestamp) && timercmp(&peers[i].bmap_timestamp, &told, <)) {
31
    if ( (!timerisset(&peers[i].bmap_timestamp) && timercmp(&peers[i].creation_timestamp, &told, <) ) ||
32
         ( timerisset(&peers[i].bmap_timestamp) && timercmp(&peers[i].bmap_timestamp, &told, <)     )   ) {
32 33
      topRemoveNeighbour(peers[i].id);
33 34
      peerset_remove_peer(pset, peers[i--].id);
34 35
    }

Also available in: Unified diff