[remote] try again

This commit is contained in:
Timothy Stack 2021-05-21 16:25:55 -07:00
parent 33bfc873b1
commit 857ba5c8e1

View File

@ -941,10 +941,14 @@ int main(int argc, char *argv[])
cps->cps_client_state = CS_TAILING;
} else if (type == TPT_ACK_BLOCK) {
// fprintf(stderr, "info: client acked: %s\n", path);
if (cps->cps_client_file_read_length == 0) {
cps->cps_client_state = CS_TAILING;
} else {
cps->cps_client_file_offset +=
cps->cps_client_file_read_length;
cps->cps_client_state = CS_INIT;
}
}
free(path);
}
break;