mirror of
https://github.com/rancher/dynamiclistener.git
synced 2025-07-06 03:16:12 +00:00
Merge pull request #18 from ibuildthecloud/dropconn
Wrong lock used to protect conn map
This commit is contained in:
commit
111c5b43e9
@ -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()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user