fix race condition
This commit is contained in:
parent
f40f3a34ab
commit
4afe8428c8
2
path.go
2
path.go
|
@ -59,7 +59,7 @@ func (pa *path) log(format string, args ...interface{}) {
|
|||
|
||||
func (pa *path) onInit() {
|
||||
if pa.source != nil {
|
||||
go pa.source.run()
|
||||
go pa.source.run(pa.source.state)
|
||||
}
|
||||
|
||||
if pa.confp.RunOnInit != "" {
|
||||
|
|
Loading…
Reference in New Issue