From 6c6675e72aace6fae20cc3285fc106c49b83dff5 Mon Sep 17 00:00:00 2001 From: thorkill Date: Fri, 10 Jul 2015 02:01:06 +0200 Subject: [PATCH] Do not cancel outgoing reconnects to nodes defined with ConnectTo --- src/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net.c b/src/net.c index e436af39..6192dcc5 100644 --- a/src/net.c +++ b/src/net.c @@ -270,7 +270,7 @@ static void periodic_handler(void *data) { for list_each(outgoing_t, o, outgoing_list) { bool found = false; for list_each(connection_t, c, connection_list) { - if(c->outgoing == o) { + if((c->outgoing == o) && (!c->outgoing->keep_it)) { found = true; break; }