Fixed regression that made packet_send_rate increase even when

no data was transmitted.
This commit is contained in:
irungentoo 2014-06-05 19:16:03 -04:00
parent 0b3980fc73
commit a4ac1497a5
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

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