diff options
Diffstat (limited to 'toxcore/net_crypto.c')
-rw-r--r-- | toxcore/net_crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index c93f4f41..784e8102 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c | |||
@@ -1785,7 +1785,7 @@ int add_tcp_relay(Net_Crypto *c, IP_Port ip_port, const uint8_t *public_key) | |||
1785 | int get_random_tcp_con_number(Net_Crypto *c) | 1785 | int get_random_tcp_con_number(Net_Crypto *c) |
1786 | { | 1786 | { |
1787 | pthread_mutex_lock(&c->tcp_mutex); | 1787 | pthread_mutex_lock(&c->tcp_mutex); |
1788 | int ret = get_random_tcp_conn_number(c->tcp_c); | 1788 | int ret = get_random_tcp_onion_conn_number(c->tcp_c); |
1789 | pthread_mutex_unlock(&c->tcp_mutex); | 1789 | pthread_mutex_unlock(&c->tcp_mutex); |
1790 | 1790 | ||
1791 | return ret; | 1791 | return ret; |