Skip to content

Commit

Permalink
Fix not deleting bootstrap hubs
Browse files Browse the repository at this point in the history
  • Loading branch information
ben221199 committed Dec 2, 2024
1 parent a1c6a29 commit dc0e56e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/main/java/com/lbry/globe/thread/HubNodeFinderThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,16 @@ public void run() {
}
}
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<Service> removeServices = new ArrayList<>();
Expand Down

0 comments on commit dc0e56e

Please sign in to comment.