Skip to content

Commit 786c9ad

Browse files
committed
daemon: fix double-unlock in health check probe
Signed-off-by: Cory Snider <csnider@mirantis.com>
1 parent eb76c93 commit 786c9ad

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

daemon/health.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ func (p *cmdProbe) run(ctx context.Context, d *Daemon, cntr *container.Container
160160
info.Lock()
161161
defer info.Unlock()
162162
if info.ExitCode == nil {
163-
info.Unlock()
164163
return 0, fmt.Errorf("healthcheck for container %s has no exit code", cntr.ID)
165164
}
166165
return *info.ExitCode, nil

0 commit comments

Comments
 (0)