mirror of
https://github.com/jackc/pgx.git
synced 2025-04-28 14:07:51 +00:00
Remove notifications when releasing Conn to Pool
This commit is contained in:
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…
x
Reference in New Issue
Block a user