Fix deleteInstance returning early

Fix deleetInstance returning success before the instance have actually
been deleted.
This commit is contained in:
Hornwitser committed 2019-11-30 00:08:10 +01:00
1 parent 3f86011db1
commit f5d2b058d9
1 file changed
+1 -3
+1 -3
View File
@@ -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);
*/
}