mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed connection bug.
This commit is contained in:
parent
aae9fae257
commit
9f1080f8b4
|
@ -322,7 +322,7 @@ static void free_connections(Lossless_UDP *ludp)
|
||||||
uint32_t i;
|
uint32_t i;
|
||||||
|
|
||||||
for (i = ludp->connections.len; i != 0; --i) {
|
for (i = ludp->connections.len; i != 0; --i) {
|
||||||
Connection *connection = &tox_array_get(&ludp->connections, i, Connection);
|
Connection *connection = &tox_array_get(&ludp->connections, i - 1, Connection);
|
||||||
|
|
||||||
if (connection->status != 0)
|
if (connection->status != 0)
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user