Browse Source

Avoid community whitelist purging

Fixes #175
pull/179/head
emanuele-f 5 years ago
parent
commit
4f04241bb3
  1. 2
      sn.c

2
sn.c

@ -1125,7 +1125,7 @@ static int run_loop(n2n_sn_t * sss) {
HASH_ITER(hh, sss->communities, comm, tmp) { HASH_ITER(hh, sss->communities, comm, tmp) {
purge_expired_registrations( &comm->edges, &last_purge_edges ); purge_expired_registrations( &comm->edges, &last_purge_edges );
if(comm->edges == NULL) { if((comm->edges == NULL) && (!sss->lock_communities)) {
traceEvent(TRACE_INFO, "Purging idle community %s", comm->community); traceEvent(TRACE_INFO, "Purging idle community %s", comm->community);
HASH_DEL(sss->communities, comm); HASH_DEL(sss->communities, comm);
free(comm); free(comm);

Loading…
Cancel
Save