Author: Sam Boysel [sboysel@gmail.com]
Hash: 81cb8f568f7a66cf9640d892bf4fc16e598678b0
Timestamp: Wed, 01 Jun 2022 01:06:43 +0000 (2 years ago)

+1 -1 +/-1 browse
execute onEvent command in Go routine
1diff --git a/pkg/internal/runner.go b/pkg/internal/runner.go
2index ea9fe17..46a802c 100644
3--- a/pkg/internal/runner.go
4+++ b/pkg/internal/runner.go
5 @@ -80,7 +80,7 @@ func (t *TaskRunner) SetState(state State) {
6 t.state = state
7 // execute onEvent command if variable is set
8 if t.onEvent != nil {
9- t.runOnEvent()
10+ go t.runOnEvent()
11 }
12 }
13