From 80ad2e4e2384adc84dc70ee15138c0ea4f9b6784 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 5 Oct 2025 03:58:52 +0900 Subject: internal/app: do not offset base value This value is applied to the shim, it is incorrect to offset the base value as well. Signed-off-by: Ophestra --- internal/app/finalise.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'internal/app/finalise.go') diff --git a/internal/app/finalise.go b/internal/app/finalise.go index f5ae398c..ec2d0a9a 100644 --- a/internal/app/finalise.go +++ b/internal/app/finalise.go @@ -186,13 +186,12 @@ func (k *outcome) finalise(ctx context.Context, msg container.Msg, id *state.ID, } // enforce bounds and default early - kp.waitDelay = shimWaitTimeout if s.Container.WaitDelay <= 0 { - kp.waitDelay += DefaultShimWaitDelay - } else if s.Container.WaitDelay > MaxShimWaitDelay { - kp.waitDelay += MaxShimWaitDelay + kp.waitDelay = hst.DefaultWaitDelay + } else if s.Container.WaitDelay > hst.MaxWaitDelay { + kp.waitDelay = hst.MaxWaitDelay } else { - kp.waitDelay += s.Container.WaitDelay + kp.waitDelay = s.Container.WaitDelay } if s.Container.MapRealUID { -- cgit v1.3.1