Lock newly created task to avoid simultaneous access
This commit is contained in:
parent
5d91db915f
commit
d93cfc7564
@ -1236,6 +1236,9 @@ func (r *restream) updateProcess(task *task, config *app.Config) error {
|
||||
return fmt.Errorf("delete process: %w", err)
|
||||
}
|
||||
|
||||
t.Lock()
|
||||
defer t.Unlock()
|
||||
|
||||
r.tasks.Store(tid, t)
|
||||
|
||||
// set filesystem cleanup rules
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user