When getting disconnected from good relay, try to reconnect.

This commit is contained in:
irungentoo 2014-08-14 17:29:50 -04:00
parent fb9fc81a35
commit cb815f7584
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -2107,6 +2107,8 @@ static void clear_disconnected_tcp(Net_Crypto *c)
continue;
c->tcp_connections[i] = NULL;
/* Try reconnecting to relay on disconnect. */
add_tcp_relay(c, tcp_con->ip_port, tcp_con->public_key);
kill_TCP_connection(tcp_con);
for (j = 0; j < c->crypto_connections_length; ++j) {