diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index 94b31d007a9..5aafe8a8a9f 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c @@ -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;