From 80f5e99223237b00d6962b05e96237414eb7c7d2 Mon Sep 17 00:00:00 2001 From: Mzack9999 Date: Fri, 10 May 2024 15:01:52 +0200 Subject: [PATCH] Fix race condition in host spray --- pkg/core/executors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/core/executors.go b/pkg/core/executors.go index 3cf6a2ade1..86302bb713 100644 --- a/pkg/core/executors.go +++ b/pkg/core/executors.go @@ -162,7 +162,7 @@ func (e *Engine) executeTemplatesOnTarget(ctx context.Context, alltemplates []*t // wp is workpool that contains different waitgroups for // headless and non-headless templates // global waitgroup should not be used here - wp := e.WorkPool() + wp := e.GetWorkPool() for _, tpl := range alltemplates { select {