mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 16:13:12 +09:00
Fix deleteInstance returning early
Fix deleetInstance returning success before the instance have actually been deleted.
This commit is contained in:
1 parent
3f86011db1
commit
f5d2b058d9
1 file changed
+1
-3
@@ -338,7 +338,7 @@ class Slave extends link.Link {
|
|||||||
await instance.stop();
|
await instance.stop();
|
||||||
this.instances.delete(instance.config.id);
|
this.instances.delete(instance.config.id);
|
||||||
|
|
||||||
fs.remove(instance.path());
|
await fs.remove(instance.path());
|
||||||
this.updateInstances();
|
this.updateInstances();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -663,8 +663,6 @@ async function startClient() {
|
|||||||
} else if (command == "manage"){
|
} else if (command == "manage"){
|
||||||
await manage(config, instance);
|
await manage(config, instance);
|
||||||
// process.exit(0);
|
// process.exit(0);
|
||||||
} else if (command == "delete") {
|
|
||||||
await deleteInstance(instance);
|
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user