summaryrefslogtreecommitdiff
path: root/toxcore/net_crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/net_crypto.c')
-rw-r--r--toxcore/net_crypto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c
index f26e40f6..463b7356 100644
--- a/toxcore/net_crypto.c
+++ b/toxcore/net_crypto.c
@@ -2107,6 +2107,8 @@ static void clear_disconnected_tcp(Net_Crypto *c)
2107 continue; 2107 continue;
2108 2108
2109 c->tcp_connections[i] = NULL; 2109 c->tcp_connections[i] = NULL;
2110 /* Try reconnecting to relay on disconnect. */
2111 add_tcp_relay(c, tcp_con->ip_port, tcp_con->public_key);
2110 kill_TCP_connection(tcp_con); 2112 kill_TCP_connection(tcp_con);
2111 2113
2112 for (j = 0; j < c->crypto_connections_length; ++j) { 2114 for (j = 0; j < c->crypto_connections_length; ++j) {