mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-13 22:51:08 -05:00
Fix deadlock, ensure instances mutex unlocked (#2296)
it's a stupid mistake
This commit is contained in:
parent
13a54dbdda
commit
13f9c34d16
1 changed files with 1 additions and 0 deletions
1
caddy.go
1
caddy.go
|
@ -858,6 +858,7 @@ func Stop() error {
|
|||
for {
|
||||
instancesMu.Lock()
|
||||
if len(instances) == 0 {
|
||||
instancesMu.Unlock()
|
||||
break
|
||||
}
|
||||
inst := instances[0]
|
||||
|
|
Loading…
Reference in a new issue