diff --git a/sources.go b/sources.go index 432fe60..ec1d81a 100644 --- a/sources.go +++ b/sources.go @@ -254,12 +254,12 @@ func (td *TemData) ParseSourcesNG() error { } for { - tmp := <-rptchan - threads-- - td.Logger.Printf("ParseSources: source \"%s\" is now complete. %d remaining", tmp, threads) if threads == 0 { break } + tmp := <-rptchan + threads-- + td.Logger.Printf("ParseSources: source \"%s\" is now complete. %d remaining", tmp, threads) } if td.MqttEngine != nil && !td.TapirMqttEngineRunning {