|
@ -1348,9 +1348,11 @@ static int re_register_and_purge_supernodes (n2n_sn_t *sss, struct sn_community |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// purge long-time-not-seen supernodes
|
|
|
// purge long-time-not-seen supernodes
|
|
|
|
|
|
if (comm) { |
|
|
purge_expired_nodes(&(comm->edges), sss->sock, &sss->tcp_connections, p_last_re_reg_and_purge, |
|
|
purge_expired_nodes(&(comm->edges), sss->sock, &sss->tcp_connections, p_last_re_reg_and_purge, |
|
|
RE_REG_AND_PURGE_FREQUENCY, LAST_SEEN_SN_INACTIVE); |
|
|
RE_REG_AND_PURGE_FREQUENCY, LAST_SEEN_SN_INACTIVE); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if(comm != NULL) { |
|
|
if(comm != NULL) { |
|
|
HASH_ITER(hh,comm->edges,peer,tmp) { |
|
|
HASH_ITER(hh,comm->edges,peer,tmp) { |
|
|