Fix lock issue for Agent and Proxy (#25771)

This commit is contained in:
Violet Hynes
2024-03-04 14:48:46 -05:00
committed by GitHub
parent ba193334ce
commit 1c0d71a58e
2 changed files with 4 additions and 0 deletions

View File

@@ -548,6 +548,7 @@ func (c *ProxyCommand) Run(args []string) int {
lnBundle, err := cache.StartListener(lnConfig)
if err != nil {
c.UI.Error(fmt.Sprintf("Error starting listener: %v", err))
c.tlsReloadFuncsLock.Unlock()
return 1
}
@@ -570,6 +571,7 @@ func (c *ProxyCommand) Run(args []string) int {
}, leaseCache)
if err != nil {
c.UI.Error(fmt.Sprintf("Error creating inmem sink for cache: %v", err))
c.tlsReloadFuncsLock.Unlock()
return 1
}
sinks = append(sinks, &sink.SinkConfig{