Try harder to connect to unreachable nodes.
authorGuus Sliepen <guus@tinc-vpn.org>
Wed, 17 Jul 2019 23:49:48 +0000 (01:49 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Wed, 17 Jul 2019 23:49:48 +0000 (01:49 +0200)
src/autoconnect.c

index 0fa6f4e..d25d65e 100644 (file)
@@ -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();
 }