Honor the expected file version before downloading

This commit is contained in:
evgeny committed 2026-10-10 01:35:28 +02:00
1 parent 468aeeebc7
commit ac17ffda54
2 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -360,7 +360,7 @@ static void transfer_response(void* arg, const struct mf_message* r) {
static void transfer_send_open(struct mf_transfer* t, uint8_t command) {
struct mf_message q = transfer_packet(t, command);
q.request_id = 0; q.cursor = command == MF_STAT ? 0 : t->request.id;
if (command == MF_STREAM_WRITE) memcpy(q.version, t->request.version, 16);
if (command == MF_STREAM_WRITE || command == MF_STAT) memcpy(q.version, t->request.version, 16);
t->pending = member_files_request(t->files->inst, t->request.group, t->request.server, &q, transfer_response, t);
if (!t->pending) transfer_stop(t, MF_BUSY);
}