execute onEvent command in Go routine

This commit is contained in:
Sam Boysel 2022-05-31 18:06:43 -07:00
parent 3ba07e9a87
commit 81cb8f568f
1 changed files with 1 additions and 1 deletions

View File

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