mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-24 09:45:26 +00:00
Ensure an empty progressbar is aborted
This commit is contained in:
parent
53b280cf32
commit
6209b25d9a
@ -91,7 +91,9 @@ func (p *Progress) Drop(count int64) {
|
||||
// wait for all the progress bars to finish.
|
||||
func (p *Progress) Wait() {
|
||||
p.totalMutex.Lock()
|
||||
if p.initialTotal != p.total {
|
||||
if p.total == 0 {
|
||||
p.gbar.Abort(true)
|
||||
} else if p.initialTotal != p.total {
|
||||
p.gbar.SetTotal(p.total, true)
|
||||
}
|
||||
p.totalMutex.Unlock()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user