From 3e8ce613ea7bd05ed261f73d5b6ca46e73b45a11 Mon Sep 17 00:00:00 2001 From: Bela Ban Date: Wed, 3 Jan 2024 12:05:41 +0100 Subject: [PATCH] ns --- src/org/jgroups/util/Util.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/jgroups/util/Util.java b/src/org/jgroups/util/Util.java index 9582a18972..e1671cc376 100644 --- a/src/org/jgroups/util/Util.java +++ b/src/org/jgroups/util/Util.java @@ -4704,7 +4704,7 @@ public static void resetCacheAddresses(boolean reset_interfaces, boolean reset_a /** Returns all addresses of all interfaces (that are up) that satisfy a given filter (ignored if null) */ public static Collection getAllAvailableAddresses(Predicate filter) { Collection cached_addresses=CACHED_ADDRESSES; - if(cached_addresses != null) + if(cached_addresses != null && filter == null) return cached_addresses; Set retval=new HashSet<>(); try {