Skip to content

Commit

Permalink
Handle network removal gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
yissachar committed Jul 9, 2024
1 parent 397e6af commit 5cb66c4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,11 @@ class Composer(private val name: String, private vararg val containers: Containe
}
}

network.stop()
try {
network.stop()
} catch (th: Throwable) {
log.error(th) { "could not remove network ${network.id()}" }
}
}

private class LogContainerResultCallback :
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,11 @@ class Composer(private val name: String, private vararg val containers: Containe
}
}

network.stop()
try {
network.stop()
} catch (th: Throwable) {
log.error(th) { "could not remove network ${network.id()}" }
}
}

private class LogContainerResultCallback :
Expand Down

0 comments on commit 5cb66c4

Please sign in to comment.