mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed warning.
This commit is contained in:
parent
361d6cc078
commit
f2be0a3c5d
|
@ -2145,7 +2145,7 @@ static void send_crypto_packets(Net_Crypto *c)
|
||||||
int ret = send_requested_packets(c, i, conn->packets_left * PACKET_RESEND_MULTIPLIER);
|
int ret = send_requested_packets(c, i, conn->packets_left * PACKET_RESEND_MULTIPLIER);
|
||||||
|
|
||||||
if (ret != -1) {
|
if (ret != -1) {
|
||||||
if (ret < conn->packets_left) {
|
if ((unsigned int)ret < conn->packets_left) {
|
||||||
conn->packets_left -= ret;
|
conn->packets_left -= ret;
|
||||||
} else {
|
} else {
|
||||||
conn->last_congestion_event = temp_time;
|
conn->last_congestion_event = temp_time;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user