fix stuck loading in some scenerios for ls-* command line options

This commit is contained in:
yusing
2024-09-22 05:01:36 +08:00
parent 46281aa3b0
commit d9fd399e43
4 changed files with 13 additions and 9 deletions

View File

@@ -72,9 +72,9 @@ func (w DockerWatcher) EventsWithOptions(ctx context.Context, options DockerList
if !w.client.Connected() {
var err E.NestedError
attempts := 0
for {
w.client, err = D.ConnectClient(w.host)
attempts := 0
if err != nil {
break
}