From c38f21f8884f1ddcd0e93168918c27a08fca8659 Mon Sep 17 00:00:00 2001 From: "zugz (tox)" Date: Sun, 27 Mar 2022 00:00:00 +0000 Subject: [PATCH] fix: Correct calculation of packet sent time --- toxcore/net_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index f0ab844f..4090dca4 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c @@ -1015,7 +1015,7 @@ static int handle_request_packet(Mono_Time *mono_time, Packets_Array *send_array uint32_t requested = 0; const uint64_t temp_time = current_time_monotonic(mono_time); - uint64_t l_sent_time = -1; + uint64_t l_sent_time = 0; for (uint32_t i = send_array->buffer_start; i != send_array->buffer_end; ++i) { if (length == 0) {