diff options
Diffstat (limited to 'pkg/worker_watcher/stack.go')
-rw-r--r-- | pkg/worker_watcher/stack.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/worker_watcher/stack.go b/pkg/worker_watcher/stack.go index 788750dc..c87e8b65 100644 --- a/pkg/worker_watcher/stack.go +++ b/pkg/worker_watcher/stack.go @@ -109,7 +109,8 @@ func (stack *Stack) Destroy(ctx context.Context) { stack.destroy = true stack.mutex.Unlock() - tt := time.NewTicker(time.Millisecond * 100) + tt := time.NewTicker(time.Millisecond * 500) + defer tt.Stop() for { select { case <-tt.C: @@ -131,7 +132,6 @@ func (stack *Stack) Destroy(ctx context.Context) { _ = stack.workers[i].Kill() } stack.mutex.Unlock() - tt.Stop() // clear stack.Reset() return |