mirror of
https://github.com/projectdiscovery/httpx.git
synced 2024-08-17 05:20:29 +03:00
minor
This commit is contained in:
parent
a91cce13ae
commit
6adf02ea9c
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user