1
1
Fork 0
mirror of https://github.com/OJ/gobuster.git synced 2024-06-10 09:06:03 +02:00

forgot loop

This commit is contained in:
Christian Mehlmauer 2018-05-24 21:39:29 +02:00
parent 976d197876
commit 4b10162a34
No known key found for this signature in database
GPG Key ID: DCF54A05D6E62591

12
main.go
View File

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