execute onEvent command in Go routine
This commit is contained in:
parent
3ba07e9a87
commit
81cb8f568f
|
@ -80,7 +80,7 @@ func (t *TaskRunner) SetState(state State) {
|
||||||
t.state = state
|
t.state = state
|
||||||
// execute onEvent command if variable is set
|
// execute onEvent command if variable is set
|
||||||
if t.onEvent != nil {
|
if t.onEvent != nil {
|
||||||
t.runOnEvent()
|
go t.runOnEvent()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue