diff --git a/progressbar.go b/progressbar.go index 314654a..0463678 100644 --- a/progressbar.go +++ b/progressbar.go @@ -580,6 +580,8 @@ func (p *ProgressBar) Clear() error { // Describe will change the description shown before the progress, which // can be changed on the fly (as for a slow running process). func (p *ProgressBar) Describe(description string) { + p.lock.Lock() + defer p.lock.Unlock() p.config.description = description if p.config.invisible { return