Clean up download logic for missing/lost chunks

This commit is contained in:
2025-11-14 11:56:29 +01:00
parent 787807031b
commit 2bbe1ac0e8
5 changed files with 161 additions and 104 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ bool message_writer_free(MessageWriter *writer)
{
uint32_t length = byte_queue_size_from_offset(writer->output, writer->start);
byte_queue_patch(writer->output, writer->patch, &length, sizeof(length));
if (byte_queue_error(writer->output))
if (byte_queue_error(writer->output)) // TODO: is it possible to restore the state of the queue to before the failure?
return false;
return true;
}