mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 11:49:26 +08:00
fix: repeatedly adding instance to the instance watcher
This commit is contained in:
@@ -57,6 +57,8 @@ class InstanceWatcher:
|
||||
self.remove_instance(i)
|
||||
|
||||
def try_add_instance(self, name):
|
||||
if name in self.instances:
|
||||
return
|
||||
config = AzurLaneConfig(name)
|
||||
full_config = config.full_config
|
||||
if full_config.Restart_InstanceRestart_Enable:
|
||||
|
||||
Reference in New Issue
Block a user