]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sun, 2 Jul 2023 03:47:52 +0000 (05:47 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 2 Jul 2023 03:47:52 +0000 (05:47 +0200)
- flush instance data when an error has happened

fba/http/federation.py

index 240bd7348334f01ae0e0b32d5827d9fb6106ee41..4e3881505ee5dd270c6432bf60595c73836ea08c 100644 (file)
@@ -86,6 +86,10 @@ def fetch_instances(domain: str, origin: str, software: str, command: str, path:
     if peerlist is None or len(peerlist) == 0:
         logger.warning("Cannot fetch peers: domain='%s'", domain)
 
+        if instances.has_pending(domain):
+            logger.debug("Flushing updates for domain='%s' ...", domain)
+            instances.update_data(domain)
+
         logger.debug("Invoking cookies.clear(%s) ...", domain)
         cookies.clear(domain)