same issue
This commit is contained in:
parent
fa742746bf
commit
a436d91a26
1 changed files with 2 additions and 2 deletions
4
utils.ts
4
utils.ts
|
@ -208,13 +208,13 @@ export async function startNewTorDocker(
|
||||||
while ((await container.inspect())!.State.Health!.Status != "healthy") {
|
while ((await container.inspect())!.State.Health!.Status != "healthy") {
|
||||||
const state = (await container.inspect())!.State.Health!.Status;
|
const state = (await container.inspect())!.State.Health!.Status;
|
||||||
if (progressBar.getProgress() >= timeout) {
|
if (progressBar.getProgress() >= timeout) {
|
||||||
await container.kill();
|
await container.remove({force:true,v:true});
|
||||||
progressBar.update(timeout / 2, { status: "Failed" });
|
progressBar.update(timeout / 2, { status: "Failed" });
|
||||||
progressBar.stop();
|
progressBar.stop();
|
||||||
throw new DockerIsBrockenError(`Docker ${container.id} is broken`);
|
throw new DockerIsBrockenError(`Docker ${container.id} is broken`);
|
||||||
}
|
}
|
||||||
if (state == "unhealthy") {
|
if (state == "unhealthy") {
|
||||||
await container.kill();
|
await container.remove({force:true,v:true});
|
||||||
progressBar.update(timeout / 2, {
|
progressBar.update(timeout / 2, {
|
||||||
status: "Docker is unhealthy...",
|
status: "Docker is unhealthy...",
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue