From dc0e56ea2a691b4d9a287fc6e2d51a19fbe3a5f2 Mon Sep 17 00:00:00 2001 From: Ben van Hartingsveldt Date: Mon, 2 Dec 2024 11:32:40 +0100 Subject: [PATCH] Fix not deleting bootstrap hubs --- .../com/lbry/globe/thread/HubNodeFinderThread.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/lbry/globe/thread/HubNodeFinderThread.java b/src/main/java/com/lbry/globe/thread/HubNodeFinderThread.java index 329efe3..c886995 100644 --- a/src/main/java/com/lbry/globe/thread/HubNodeFinderThread.java +++ b/src/main/java/com/lbry/globe/thread/HubNodeFinderThread.java @@ -78,7 +78,16 @@ public class HubNodeFinderThread implements Runnable{ } } for(InetAddress removeIP : removeIPs){ - HubNodeFinderThread.LAST_SEEN.remove(removeIP); + boolean isBootstrap = false; + for(String bootstrap : HubNodeFinderThread.HUBS){ + if(bootstrap.equalsIgnoreCase(removeIP.getHostName())){ + isBootstrap = true; + break; + } + } + if(!isBootstrap){ + HubNodeFinderThread.LAST_SEEN.remove(removeIP); + } Node n = API.NODES.get(removeIP); if(n!=null){ List removeServices = new ArrayList<>();