Do not cancel outgoing reconnects to nodes defined with ConnectTo

This commit is contained in:
thorkill 2015-07-10 02:01:06 +02:00
parent 76d278a5c0
commit 6c6675e72a

View file

@ -270,7 +270,7 @@ static void periodic_handler(void *data) {
for list_each(outgoing_t, o, outgoing_list) { for list_each(outgoing_t, o, outgoing_list) {
bool found = false; bool found = false;
for list_each(connection_t, c, connection_list) { for list_each(connection_t, c, connection_list) {
if(c->outgoing == o) { if((c->outgoing == o) && (!c->outgoing->keep_it)) {
found = true; found = true;
break; break;
} }