Skip to content

Commit

Permalink
* fix from Leon for the "wait forever parsing zero sources" bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
johanix committed Sep 25, 2024
1 parent d5f9aa9 commit 863bcb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sources.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 863bcb2

Please sign in to comment.