Fixed a bug with workflow

This commit is contained in:
Ice3man543 2021-03-01 12:42:13 +05:30
parent ebe6a56d13
commit 99e66d7554
2 changed files with 4 additions and 1 deletions

View File

@ -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)

View File

@ -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)