mirror of
https://github.com/CovidBraceletPrj/CovidBracelet.git
synced 2025-01-08 04:14:25 +01:00
Records: In init_range, set finished to false, if there are contacts
This commit is contained in:
parent
33f64b1caa
commit
30615a895d
@ -12,6 +12,8 @@ int ens_records_iterator_init_range(record_iterator_t* iterator,
|
||||
iterator->sn_end = opt_end ? *opt_end : get_latest_sequence_number();
|
||||
if (get_num_contacts() == 0) {
|
||||
iterator->finished = true; // no contacts -> no iteration :)
|
||||
} else {
|
||||
iterator->finished = false;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user