mirror of
https://github.com/datarhei/core.git
synced 2025-11-03 00:14:02 +08:00
Fix data race
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user