1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 18:15:42 +01:00

if all interims have not changed do nothing

This commit is contained in:
Sascha L. Teichmann 2022-08-02 18:20:04 +02:00
parent c27fa41c2f
commit bf95140dbe

View file

@ -212,6 +212,11 @@ func (w *worker) interimWork(wg *sync.WaitGroup, jobs <-chan *interimJob) {
return err
}
// Nothing has changed.
if len(notFinalized) == len(interims) {
continue
}
// Simply append the olds. Maybe we got re-configured with
// a greater interims interval later.
notFinalized = append(notFinalized, olds...)