From 770c698332340f83f5dee8854dc3a7c21aab8dc8 Mon Sep 17 00:00:00 2001 From: yusing Date: Fri, 2 May 2025 04:56:27 +0800 Subject: [PATCH] fix(idlewatcher): "unexpected container action" after unexpected EOF --- internal/idlewatcher/watcher.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/idlewatcher/watcher.go b/internal/idlewatcher/watcher.go index 6a3b0aa4..02f84e1d 100644 --- a/internal/idlewatcher/watcher.go +++ b/internal/idlewatcher/watcher.go @@ -265,8 +265,11 @@ func (w *Watcher) watchUntilDestroy() (returnCause gperr.Error) { gperr.LogError("watcher error", err, &w.l) case e := <-eventCh: w.l.Debug().Stringer("action", e.Action).Msg("state changed") - if e.Action == events.ActionContainerDestroy { + switch e.Action { + case events.ActionContainerDestroy: return causeContainerDestroy + case events.ActionForceReload: + continue } w.resetIdleTimer() switch {