From 08acfd0a760d75a4a0c116014c394b673434745a Mon Sep 17 00:00:00 2001 From: Cyrill Troxler Date: Tue, 10 Mar 2026 18:05:51 +0100 Subject: [PATCH] fix: lastActivity when container has empty ports when a container with multiple ports has no activity on a port, lastActivity would error out before collecting the activity on all ports --- shim/container.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shim/container.go b/shim/container.go index cab9317..b21c9d2 100644 --- a/shim/container.go +++ b/shim/container.go @@ -484,6 +484,9 @@ func (c *Container) lastActivity() (time.Time, error) { for _, port := range c.cfg.Ports { last, err := c.activator.LastActivity(port) if err != nil { + if errors.Is(err, activator.NoActivityRecordedErr{}) { + continue + } return time.Time{}, err } act = append(act, last)