Merge pull request #413 from pyakpyak/master

deadlock fix in RemoveStaticRoute
This commit is contained in:
Jana Radhakrishnan 2015-07-24 08:11:15 -07:00
commit 787190b773

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 {