浏览代码

Merge pull request #802 from aboch/ind

Skip defaultGw check if sandbox is being deleted
Jana Radhakrishnan 9 年之前
父节点
当前提交
6769da8387
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libnetwork/endpoint.go

+ 1 - 1
libnetwork/endpoint.go

@@ -561,7 +561,7 @@ func (ep *endpoint) sbLeave(sbox Sandbox, options ...EndpointOption) error {
 
 	sb.deleteHostsEntries(n.getSvcRecords(ep))
 
-	if sb.needDefaultGW() {
+	if !sb.inDelete && sb.needDefaultGW() {
 		ep := sb.getEPwithoutGateway()
 		if ep == nil {
 			return fmt.Errorf("endpoint without GW expected, but not found")