mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed regression that made packet_send_rate increase even when
no data was transmitted.
This commit is contained in:
parent
0b3980fc73
commit
a4ac1497a5
|
@ -2298,7 +2298,10 @@ static void send_crypto_packets(Net_Crypto *c)
|
|||
int ret = send_requested_packets(c, i, conn->packets_left);
|
||||
|
||||
if (ret != -1) {
|
||||
conn->sending = CONN_SENDING_VALUE;
|
||||
if (ret != 0) {
|
||||
conn->sending = CONN_SENDING_VALUE;
|
||||
}
|
||||
|
||||
conn->packets_resent += ret;
|
||||
conn->packets_left -= ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user