diff options
Diffstat (limited to 'toxcore')
-rw-r--r-- | toxcore/net_crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index a826f77a..be414799 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c | |||
@@ -2145,7 +2145,7 @@ static void send_crypto_packets(Net_Crypto *c) | |||
2145 | int ret = send_requested_packets(c, i, conn->packets_left * PACKET_RESEND_MULTIPLIER); | 2145 | int ret = send_requested_packets(c, i, conn->packets_left * PACKET_RESEND_MULTIPLIER); |
2146 | 2146 | ||
2147 | if (ret != -1) { | 2147 | if (ret != -1) { |
2148 | if (ret < conn->packets_left) { | 2148 | if ((unsigned int)ret < conn->packets_left) { |
2149 | conn->packets_left -= ret; | 2149 | conn->packets_left -= ret; |
2150 | } else { | 2150 | } else { |
2151 | conn->last_congestion_event = temp_time; | 2151 | conn->last_congestion_event = temp_time; |