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 0390e44e..606561bb 100644
--- a/toxcore/net_crypto.c
+++ b/toxcore/net_crypto.c
@@ -1957,6 +1957,8 @@ static int tcp_data_callback(void *object, int id, const uint8_t *data, uint16_t
1957 return tcp_handle_cookie_request(c, conn->connection_number_tcp, data, length); 1957 return tcp_handle_cookie_request(c, conn->connection_number_tcp, data, length);
1958 } 1958 }
1959 1959
1960 // This unlocks the mutex that at this point is locked by do_tcp before
1961 // calling do_tcp_connections.
1960 pthread_mutex_unlock(&c->tcp_mutex); 1962 pthread_mutex_unlock(&c->tcp_mutex);
1961 int ret = handle_packet_connection(c, id, data, length, 0, userdata); 1963 int ret = handle_packet_connection(c, id, data, length, 0, userdata);
1962 pthread_mutex_lock(&c->tcp_mutex); 1964 pthread_mutex_lock(&c->tcp_mutex);