mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-24 08:02:32 +02:00
Noobed the deadlock
This commit is contained in:
parent
2e9f4271a8
commit
98f295b6b0
@ -63,6 +63,7 @@ func (p *pool) release(addr string, conn *poolConn, err error) {
|
||||
p.Lock()
|
||||
conns := p.conns[addr]
|
||||
if len(conns) >= maxIdleConn {
|
||||
p.Unlock()
|
||||
conn.Client.Close()
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user