mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00
fix(idlewatcher): "unexpected container action" after unexpected EOF
This commit is contained in:
parent
cd4c843025
commit
770c698332
1 changed files with 4 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue