From 6adf02ea9c0788f8b1fd20258f2306a35fdf0977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Do=C4=9Fan=20Can=20Bak=C4=B1r?= Date: Wed, 12 Jun 2024 14:15:44 +0300 Subject: [PATCH] minor --- runner/runner.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runner/runner.go b/runner/runner.go index ae71240..347eca2 100644 --- a/runner/runner.go +++ b/runner/runner.go @@ -1243,7 +1243,9 @@ func (r *Runner) Process(t string, wg *syncutil.AdaptiveWaitGroup, protocol stri func (r *Runner) process(t string, wg *syncutil.AdaptiveWaitGroup, hp *httpx.HTTPX, protocol string, scanopts *ScanOptions, output chan Result) { if r.options.Threads > 0 && wg.Size != r.options.Threads { - wg.Resize(context.TODO(), r.options.Threads) + if err := wg.Resize(context.Background(), r.options.Threads); err != nil { + gologger.Error().Msgf("Could not resize workpool: %s\n", err) + } } protocols := []string{protocol}