From befa0c12ba6d90d47bd7d15bd9fedb1f58cc6de2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 19 Sep 2011 21:17:37 +0200 Subject: [PATCH] Remove all existing targets before scanning for new targets. --- src/main/java/net/pterodactylus/wotns/main/IdentityTargets.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/pterodactylus/wotns/main/IdentityTargets.java b/src/main/java/net/pterodactylus/wotns/main/IdentityTargets.java index 2eacd08..1266874 100644 --- a/src/main/java/net/pterodactylus/wotns/main/IdentityTargets.java +++ b/src/main/java/net/pterodactylus/wotns/main/IdentityTargets.java @@ -56,6 +56,7 @@ public class IdentityTargets implements Iterable> { private void scanForTargets() { synchronized (targets) { + targets.clear(); for (Entry property : identity.getProperties().entrySet()) { if (property.getKey().startsWith("tns.")) { targets.put(property.getKey().substring(4), property.getValue()); -- 2.7.4