Fixed connection bug.

This commit is contained in:
irungentoo 2013-09-29 08:07:10 -04:00
parent aae9fae257
commit 9f1080f8b4

View File

@ -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;