mirror of
https://github.com/OJ/gobuster.git
synced 2024-06-10 09:06:03 +02:00
forgot loop
This commit is contained in:
parent
976d197876
commit
4b10162a34
12
main.go
12
main.go
|
@ -83,11 +83,13 @@ func errorWorker(g *libgobuster.Gobuster, wg *sync.WaitGroup) {
|
|||
func progressWorker(c context.Context, g *libgobuster.Gobuster) {
|
||||
tick := time.NewTicker(1 * time.Second)
|
||||
|
||||
select {
|
||||
case <-tick.C:
|
||||
g.PrintProgress()
|
||||
case <-c.Done():
|
||||
return
|
||||
for {
|
||||
select {
|
||||
case <-tick.C:
|
||||
g.PrintProgress()
|
||||
case <-c.Done():
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue