Skip to content

Commit

Permalink
Fix ExecuteCallbackWithCtx to use the context that was provided
Browse files Browse the repository at this point in the history
This updates `ExecuteCallbackWithCtx` to use the context that was
provided.
  • Loading branch information
doug-threatmate committed May 28, 2024
1 parent 4ae0b39 commit d75d832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func (e *NucleiEngine) ExecuteCallbackWithCtx(ctx context.Context, callback ...f
}
e.resultCallbacks = append(e.resultCallbacks, filtered...)

_ = e.engine.ExecuteScanWithOpts(context.Background(), e.store.Templates(), e.inputProvider, false)
_ = e.engine.ExecuteScanWithOpts(ctx, e.store.Templates(), e.inputProvider, false)
defer e.engine.WorkPool().Wait()
return nil
}
Expand Down

0 comments on commit d75d832

Please sign in to comment.