Skip to content

Commit e4e5192

Browse files
committed
[core] Unlock earlier in task.Manager.TransitionTasks
1 parent be11d1e commit e4e5192

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

core/task/manager.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,10 +378,11 @@ func (m *Manager) ConfigureTasks(envId uuid.Array, tasks Tasks) error {
378378

379379
func (m *Manager) TransitionTasks(envId uuid.Array, tasks Tasks, src string, event string, dest string) error {
380380
m.mu.Lock()
381-
defer m.mu.Unlock()
382381

383382
notify := make(chan controlcommands.MesosCommandResponse)
384383
receivers, err := tasks.GetMesosCommandTargets()
384+
m.mu.Unlock()
385+
385386
if err != nil {
386387
return err
387388
}

0 commit comments

Comments
 (0)