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
1 changed files with 1 additions and 1 deletions

View File

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