Skip to content

Commit ec0ef7c

Browse files
authored
destroy always tear down the container (#4443)
fixes #4440
1 parent 226a3f5 commit ec0ef7c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/workerd/server/container-client.c++

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,7 @@ kj::Promise<void> ContainerClient::monitor(MonitorContext context) {
413413
}
414414

415415
kj::Promise<void> ContainerClient::destroy(DestroyContext context) {
416-
const auto [running, _ports] = co_await inspectContainer();
417-
if (running) {
418-
co_await destroyContainer();
419-
}
416+
co_await destroyContainer();
420417
}
421418

422419
kj::Promise<void> ContainerClient::signal(SignalContext context) {

0 commit comments

Comments
 (0)