mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 16:07:07 +08:00
Adjust process state if parser doesn't indicate that the process is producing output
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user