1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

EP lock shouldn't be held when trying network lock

Signed-off-by: Santhosh Manohar <santhosh@docker.com>
This commit is contained in:
Santhosh Manohar 2016-01-08 19:25:53 -08:00
parent 06ff0a98a0
commit 3e154b3cef

View file

@ -683,8 +683,8 @@ func (ep *endpoint) deleteEndpoint() error {
} }
func (ep *endpoint) getSandbox() (*sandbox, bool) { func (ep *endpoint) getSandbox() (*sandbox, bool) {
ep.Lock()
c := ep.network.getController() c := ep.network.getController()
ep.Lock()
sid := ep.sandboxID sid := ep.sandboxID
ep.Unlock() ep.Unlock()