Fix data race
This commit is contained in:
parent
5dd378902b
commit
fcbabc2b23
1 changed files with 5 additions and 1 deletions
|
|
@ -178,7 +178,11 @@ func (p *parser) Parse(line string) uint64 {
|
||||||
p.lock.log.Unlock()
|
p.lock.log.Unlock()
|
||||||
}
|
}
|
||||||
|
|
||||||
if !p.prelude.done {
|
p.lock.prelude.Lock()
|
||||||
|
preludeDone := p.prelude.done
|
||||||
|
p.lock.prelude.Unlock()
|
||||||
|
|
||||||
|
if !preludeDone {
|
||||||
if isAVstreamProgress {
|
if isAVstreamProgress {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue