Fix process cleanup

This commit is contained in:
Ingo Oppermann 2024-10-01 15:16:30 +02:00
parent 17b8289f87
commit d2325d0832
No known key found for this signature in database
GPG Key ID: 2AB32426E9DD229E

View File

@ -187,7 +187,7 @@ func (r *restream) Start() {
t.Restore()
// The filesystem cleanup rules can be set
r.setCleanup(id, t.Config())
r.setCleanup(id, t.config)
return true
})
@ -1168,7 +1168,7 @@ func (r *restream) updateProcess(id app.ProcessID, config *app.Config) error {
r.tasks.Store(tid, t)
// set filesystem cleanup rules
r.setCleanup(tid, t.Config())
r.setCleanup(tid, t.config)
t.Restore()
@ -1376,7 +1376,7 @@ func (r *restream) reloadProcess(id app.ProcessID) error {
r.tasks.Store(tid, t)
// set filesystem cleanup rules
r.setCleanup(tid, t.Config())
r.setCleanup(tid, t.config)
t.Restore()