deadlock fix in RemoveStaticRoute

This commit is contained in:
Andrei Ushakov
2015-07-24 01:32:35 -07:00
parent 4348eb8a3f
commit 730604773c
-1
View File
@@ -177,7 +177,6 @@ func (n *networkNamespace) AddStaticRoute(r *types.StaticRoute) error {
}
func (n *networkNamespace) RemoveStaticRoute(r *types.StaticRoute) error {
n.Lock()
err := removeRoute(n.nsPath(), r.Destination, r.NextHop)
if err == nil {