diff options
Diffstat (limited to 'internal/app/finalise.go')
| -rw-r--r-- | internal/app/finalise.go | 9 |
1 files changed, 4 insertions, 5 deletions
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 { |
