From 99e66d7554b51f370d9e842f0ed915251ecd6dcc Mon Sep 17 00:00:00 2001 From: Ice3man543 Date: Mon, 1 Mar 2021 12:42:13 +0530 Subject: [PATCH] Fixed a bug with workflow --- v2/internal/runner/processor.go | 3 +++ v2/internal/runner/runner.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/v2/internal/runner/processor.go b/v2/internal/runner/processor.go index a00993b88..f442c6237 100644 --- a/v2/internal/runner/processor.go +++ b/v2/internal/runner/processor.go @@ -32,6 +32,9 @@ func (r *Runner) processTemplateWithList(template *templates.Template) bool { // processTemplateWithList process a template on the URL list func (r *Runner) processWorkflowWithList(template *templates.Template) bool { + if r.options.Workflows { + return false + } results := &atomic.Bool{} wg := sizedwaitgroup.New(r.options.BulkSize) diff --git a/v2/internal/runner/runner.go b/v2/internal/runner/runner.go index 762e0fa72..f5900edef 100644 --- a/v2/internal/runner/runner.go +++ b/v2/internal/runner/runner.go @@ -302,7 +302,7 @@ func (r *Runner) RunEnumeration() { if len(template.Workflows) > 0 { results.CAS(false, r.processWorkflowWithList(template)) - } else if !r.options.Workflows { + } else { results.CAS(false, r.processTemplateWithList(template)) } }(t)