mirror of
https://github.com/datarhei/core.git
synced 2025-09-26 20:11:29 +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()
|
||||
}
|
||||
|
||||
if !p.prelude.done {
|
||||
p.lock.prelude.Lock()
|
||||
preludeDone := p.prelude.done
|
||||
p.lock.prelude.Unlock()
|
||||
|
||||
if !preludeDone {
|
||||
if isAVstreamProgress {
|
||||
return 0
|
||||
}
|
||||
|
Reference in New Issue
Block a user