X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fautoconnect.c;h=d25d65e30f528e0c237df8e4b70493bdf512e3c3;hp=0fa6f4e5f35a45ed64926e142e4b479626860e68;hb=de7d5a03c2b956ab5753faf63b8148a279a71f29;hpb=ba0a3bcb2d565eec26aed30eef902d3482877cf9 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(); }