Skip to content

Commit

Permalink
Fix chan close / panic
Browse files Browse the repository at this point in the history
  • Loading branch information
lc committed Sep 16, 2020
1 parent 69e2028 commit e45a378
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ func run(config *providers.Config, domains []string) {
}
// Wait for providers to finish their tasks
wg.Wait()
close(results)
// Wait for writer to finish
writewg.Wait()
}
close(results)
// Wait for writer to finish
writewg.Wait()
os.Exit(exitStatus)
}

Expand Down
2 changes: 1 addition & 1 deletion providers/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

const (
// Version of gau
Version = `1.0.4`
Version = `1.0.5`
// UserAgent for the HTTP Client
userAgent = "Mozilla/5.0 (compatible; gau/" + Version + "; https://github.com/lc/gau)"
)
Expand Down

0 comments on commit e45a378

Please sign in to comment.