From 863bcb2b3500f40e7aef612abe3c6720f9613697 Mon Sep 17 00:00:00 2001 From: Johan Stenstam Date: Wed, 25 Sep 2024 11:57:52 +0200 Subject: [PATCH] * fix from Leon for the "wait forever parsing zero sources" bug. --- sources.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {