Skip to content

Commit

Permalink
bring back CRYPTO_CONN_NO_CONNECTION and leave a note
Browse files Browse the repository at this point in the history
  • Loading branch information
Green-Sky committed Nov 3, 2024
1 parent 15c1778 commit 5f97890
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions toxcore/net_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -1824,6 +1824,9 @@ static int create_crypto_connection(Net_Crypto *c)
c->crypto_connections[id].last_packets_left_rem = 0.0;
c->crypto_connections[id].packet_send_rate_requested = 0.0;
c->crypto_connections[id].last_packets_left_requested_rem = 0.0;

// TODO(Green-Sky): This enum is likely unneeded and the same as FREE.
c->crypto_connections[id].status = CRYPTO_CONN_NO_CONNECTION;
}

return id;
Expand Down

0 comments on commit 5f97890

Please sign in to comment.