execute onEvent command in Go routine

master
Sam Boysel 2 years ago
parent 3ba07e9a87
commit 81cb8f568f

@ -80,7 +80,7 @@ func (t *TaskRunner) SetState(state State) {
t.state = state
// execute onEvent command if variable is set
if t.onEvent != nil {
t.runOnEvent()
go t.runOnEvent()
}
}

Loading…
Cancel
Save