Commit 13f9c34d authored by yyqbuct's avatar yyqbuct Committed by Matt Holt

Fix deadlock, ensure instances mutex unlocked (#2296)

it's a stupid mistake
parent 13a54dbd
......@@ -858,6 +858,7 @@ func Stop() error {
for {
instancesMu.Lock()
if len(instances) == 0 {
instancesMu.Unlock()
break
}
inst := instances[0]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment