Adjust process state if parser doesn't indicate that the process is producing output

This commit is contained in:
Ingo Oppermann
2024-04-15 16:43:34 +02:00
parent 197d3bb611
commit b851249b98
4 changed files with 22 additions and 2 deletions

View File

@@ -660,6 +660,13 @@ func (p *parser) Progress() Progress {
return progress
}
func (p *parser) IsRunning() bool {
p.lock.progress.RLock()
defer p.lock.progress.RUnlock()
return p.stats.initialized
}
func (p *parser) Prelude() []string {
p.lock.prelude.RLock()
if p.prelude.data == nil {