浏览代码

Merge pull request #45797 from corhere/fix-health-probe-double-unlock

daemon: fix double-unlock in health check probe
Bjorn Neergaard 2 年之前
父节点
当前提交
8d070e30f5
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      daemon/health.go

+ 0 - 1
daemon/health.go

@@ -160,7 +160,6 @@ func (p *cmdProbe) run(ctx context.Context, d *Daemon, cntr *container.Container
 		info.Lock()
 		defer info.Unlock()
 		if info.ExitCode == nil {
-			info.Unlock()
 			return 0, fmt.Errorf("healthcheck for container %s has no exit code", cntr.ID)
 		}
 		return *info.ExitCode, nil