mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed possible bug.
This commit is contained in:
parent
50b81dc669
commit
390f94bfd5
|
@ -1565,6 +1565,7 @@ int accept_crypto_connection(Net_Crypto *c, New_Connection *n_c)
|
||||||
pthread_mutex_lock(&c->tcp_mutex);
|
pthread_mutex_lock(&c->tcp_mutex);
|
||||||
kill_tcp_connection_to(c->tcp_c, conn->connection_number_tcp);
|
kill_tcp_connection_to(c->tcp_c, conn->connection_number_tcp);
|
||||||
pthread_mutex_unlock(&c->tcp_mutex);
|
pthread_mutex_unlock(&c->tcp_mutex);
|
||||||
|
conn->status = CRYPTO_CONN_NO_CONNECTION;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user