Skip to content

Commit 2e133c2

Browse files
committed
reset mtime to force list refresh
1 parent 410241d commit 2e133c2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

agent/agentcontainers/api.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,13 @@ func (api *API) handleDevcontainerRecreate(w http.ResponseWriter, r *http.Reques
511511
slog.F("name", api.knownDevcontainers[i].Name),
512512
)
513513
api.knownDevcontainers[i].Dirty = false
514+
// TODO(mafredri): This should be handled by a service that
515+
// updates the devcontainer state periodically and on-demand.
514516
api.knownDevcontainers[i].Container = nil
517+
// Set the modified time to the zero value to indicate that
518+
// the containers list must be refreshed. This will see to
519+
// it that the new container is re-assigned.
520+
api.mtime = time.Time{}
515521
}
516522
return
517523
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy