Fixed stale job issue

This commit is contained in:
Donald Zou
2025-10-24 09:21:48 +08:00
parent 18531b71c7
commit d763867566
5 changed files with 43 additions and 13 deletions

View File

@@ -173,9 +173,7 @@ class AmneziaWireguardConfiguration(WireguardConfiguration):
self.metadata.create_all(self.engine)
def getPeers(self):
self.Peers.clear()
current_app.logger.info(f"Refreshing {self.Name} peer list")
self.Peers.clear()
if self.configurationFileChanged():
with open(self.configPath, 'r') as configFile:
p = []