return true;
if (!scores_changed.get_flag())
return false;
+ scores_changed.reset_flag();
bool needs_update;
conn.perform(FetchNeedsUpdate(last_updated, tournament, round, parallel, &needs_update));
- if (!needs_update)
- scores_changed.reset_flag();
-
+ valid = !needs_update;
return needs_update;
}
return true;
if (!scores_changed.get_flag())
return false;
+ scores_changed.reset_flag();
// check that there are indeed changes, otherwise don't bother
std::vector<TopScore> scores;
for (std::vector<TopScore>::const_iterator i = scores.begin(); i != scores.end(); ++i) {
if (seen_topscore.count(*i) == 0) {
+ valid = false;
return true;
}
}
-
+
return false;
}
return true;
if (!scores_changed.get_flag())
return false;
+ scores_changed.reset_flag();
// check that there are indeed changes, otherwise don't bother
std::vector<TopChosen> scores;
for (std::vector<TopChosen>::const_iterator i = scores.begin(); i != scores.end(); ++i) {
if (seen_topchosen.count(*i) == 0) {
+ valid = false;
return true;
}
}