From 35e7ccb7737a656eb5a6edbd76ae831520ce1788 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sat, 9 May 2026 02:52:01 +0200 Subject: [PATCH] Fixed invalid handling of corrupted discovery file --- RNS/Discovery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNS/Discovery.py b/RNS/Discovery.py index d99b14e5..f5ba4ed3 100644 --- a/RNS/Discovery.py +++ b/RNS/Discovery.py @@ -478,7 +478,7 @@ class InterfaceDiscovery(): except Exception as e: RNS.log(f"Error while reading existing data for discovered interface, re-creating data", RNS.LOG_ERROR) - if discovered == None: discovered = info["discovered"] + if discovered == None: discovered = info["received"] if heard_count == None: heard_count = 0 with open(filepath, "wb") as f: