mirror of
https://github.com/yusing/godoxy.git
synced 2025-07-25 13:24:03 +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)
|
gperr.LogError("watcher error", err, &w.l)
|
||||||
case e := <-eventCh:
|
case e := <-eventCh:
|
||||||
w.l.Debug().Stringer("action", e.Action).Msg("state changed")
|
w.l.Debug().Stringer("action", e.Action).Msg("state changed")
|
||||||
if e.Action == events.ActionContainerDestroy {
|
switch e.Action {
|
||||||
|
case events.ActionContainerDestroy:
|
||||||
return causeContainerDestroy
|
return causeContainerDestroy
|
||||||
|
case events.ActionForceReload:
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
w.resetIdleTimer()
|
w.resetIdleTimer()
|
||||||
switch {
|
switch {
|
||||||
|
|
Loading…
Add table
Reference in a new issue