From: Aaron Krebs Date: Tue, 29 Jul 2014 13:49:45 +0000 (+0200) Subject: Check that num_unreachable > 0 X-Git-Url: http://git.meshlink.io/?p=meshlink;a=commitdiff_plain;h=27809af390b5a81a3e2ed8424529c1012540d039 Check that num_unreachable > 0 --- diff --git a/src/net.c b/src/net.c index 651c2a3e..c63fbacd 100644 --- a/src/net.c +++ b/src/net.c @@ -195,8 +195,7 @@ static void periodic_handler(event_loop_t *loop, void *data) { } break; } - //} else if(nc > autoconnect) { - } else { + } else if (num_unreachable > 0) { /* Min number of connections established. Now try to connect to some unreachable nodes to attempt to heal possible partitions.