From 27809af390b5a81a3e2ed8424529c1012540d039 Mon Sep 17 00:00:00 2001 From: Aaron Krebs Date: Tue, 29 Jul 2014 15:49:45 +0200 Subject: [PATCH 1/1] Check that num_unreachable > 0 --- src/net.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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. -- 2.39.2