Wrong lock used to protect conn map

This commit is contained in:
Darren Shepherd 2020-02-13 09:52:25 -07:00
parent 5276ad483a
commit bd73d0d4bc

View File

@ -237,8 +237,8 @@ func (c *closeWrapper) close() error {
}
func (c *closeWrapper) Close() error {
c.l.Lock()
defer c.l.Unlock()
c.l.connLock.Lock()
defer c.l.connLock.Unlock()
return c.close()
}