Fix returning original config

This commit is contained in:
Ingo Oppermann 2024-09-03 16:39:19 +02:00
parent af6228e9b1
commit 70ffb805b4
No known key found for this signature in database
GPG Key ID: 2AB32426E9DD229E

View File

@ -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() {