mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 20:39:40 -08:00
fix(shell): lock template cache creation
This commit is contained in:
parent
2f1bf39253
commit
73e91eab5b
|
@ -708,6 +708,8 @@ func (env *Shell) Logs() string {
|
|||
}
|
||||
|
||||
func (env *Shell) TemplateCache() *TemplateCache {
|
||||
lock.Lock()
|
||||
defer lock.Unlock()
|
||||
defer env.Trace(time.Now(), "TemplateCache")
|
||||
if env.tmplCache != nil {
|
||||
return env.tmplCache
|
||||
|
|
Loading…
Reference in a new issue