소스 검색

Merge pull request #413 from pyakpyak/master

deadlock fix in RemoveStaticRoute
Jana Radhakrishnan 10 년 전
부모
커밋
787190b773
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      libnetwork/sandbox/route_linux.go

+ 0 - 1
libnetwork/sandbox/route_linux.go

@@ -177,7 +177,6 @@ func (n *networkNamespace) AddStaticRoute(r *types.StaticRoute) error {
 }
 }
 
 
 func (n *networkNamespace) RemoveStaticRoute(r *types.StaticRoute) error {
 func (n *networkNamespace) RemoveStaticRoute(r *types.StaticRoute) error {
-	n.Lock()
 
 
 	err := removeRoute(n.nsPath(), r.Destination, r.NextHop)
 	err := removeRoute(n.nsPath(), r.Destination, r.NextHop)
 	if err == nil {
 	if err == nil {