Permalink
Browse files

Fix deadlock, ensure instances mutex unlocked (#2296)

it's a stupid mistake
  • Loading branch information...
yyqbuct authored and mholt committed Sep 18, 2018
1 parent 13a54db commit 13f9c34d161693c1c0828fea3750d01c068174b6
Showing with 1 addition and 0 deletions.
  1. +1 −0 caddy.go
@@ -858,6 +858,7 @@ func Stop() error {
for {
instancesMu.Lock()
if len(instances) == 0 {
instancesMu.Unlock()
break
}
inst := instances[0]

0 comments on commit 13f9c34

Please sign in to comment.