From de7d5a03c2b956ab5753faf63b8148a279a71f29 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Thu, 18 Jul 2019 01:49:48 +0200 Subject: [PATCH] Try harder to connect to unreachable nodes. --- src/autoconnect.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/autoconnect.c b/src/autoconnect.c index 0fa6f4e5..d25d65e3 100644 --- a/src/autoconnect.c +++ b/src/autoconnect.c @@ -186,10 +186,9 @@ void do_autoconnect() { drop_superfluous_outgoing_connection(); } + /* Drop pending outgoing connections from the outgoing list. */ + drop_superfluous_pending_connections(); /* Check if there are unreachable nodes that we should try to connect to. */ connect_to_unreachable(); - - /* Drop pending outgoing connections from the outgoing list. */ - drop_superfluous_pending_connections(); } -- 2.20.1