Fix returning original config
This commit is contained in:
parent
af6228e9b1
commit
70ffb805b4
@ -448,11 +448,11 @@ func (t *task) Config() *app.Config {
|
||||
token := t.lock.RLock()
|
||||
defer t.lock.RUnlock(token)
|
||||
|
||||
if t.config == nil {
|
||||
if t.process == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
return t.config.Clone()
|
||||
return t.process.Config.Clone()
|
||||
}
|
||||
|
||||
func (t *task) Destroy() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user