mirror of https://github.com/jackc/pgx.git
Remove notifications when releasing Conn to Pool
parent
3857bab52e
commit
20cf4f87ab
|
@ -125,6 +125,7 @@ func (p *ConnPool) Release(conn *Conn) {
|
|||
}
|
||||
conn.channels = make(map[string]struct{})
|
||||
}
|
||||
conn.notifications = nil
|
||||
|
||||
p.cond.L.Lock()
|
||||
if conn.IsAlive() {
|
||||
|
|
Loading…
Reference in New Issue