mirror of
https://github.com/rancher/dynamiclistener.git
synced 2026-01-05 07:44:41 +00:00
Merge pull request #18 from ibuildthecloud/dropconn
Wrong lock used to protect conn map
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user