Break the loop early (and thus hold the lock for less time) if we have all the data we need
This commit is contained in:
parent
f6a2ef8f3c
commit
d334bdebd8
@ -894,6 +894,7 @@ bool PackageConf::can_check_source_upload() {
|
||||
source_check_successful = kv.second->successful;
|
||||
source_check_time = kv.second->finish_time;
|
||||
}
|
||||
if (upload_ok && source_check_ok) break;
|
||||
}
|
||||
}
|
||||
std::int64_t now = std::chrono::duration_cast<std::chrono::milliseconds>(
|
||||
@ -919,6 +920,7 @@ bool PackageConf::can_check_builds() {
|
||||
build_check_successful = kv.second->successful;
|
||||
build_check_time = kv.second->finish_time;
|
||||
}
|
||||
if (source_check_ok && build_check_ok) break;
|
||||
}
|
||||
}
|
||||
std::int64_t now = std::chrono::duration_cast<std::chrono::milliseconds>(
|
||||
|
Loading…
x
Reference in New Issue
Block a user