From f5d2b058d9f3e3cf8ff905a57332b666f95078a6 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Fri, 29 Nov 2019 23:33:37 +0100 Subject: [PATCH] Fix deleteInstance returning early Fix deleetInstance returning success before the instance have actually been deleted. --- client.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client.js b/client.js index 6f73c842..18f47d86 100644 --- a/client.js +++ b/client.js @@ -338,7 +338,7 @@ class Slave extends link.Link { await instance.stop(); this.instances.delete(instance.config.id); - fs.remove(instance.path()); + await fs.remove(instance.path()); this.updateInstances(); } @@ -663,8 +663,6 @@ async function startClient() { } else if (command == "manage"){ await manage(config, instance); // process.exit(0); - } else if (command == "delete") { - await deleteInstance(instance); */ }