From: David ‘Bombe’ Roden Date: Fri, 16 Sep 2011 09:12:18 +0000 (+0200) Subject: Remove trusted identities for an own identity if the own identity is removed. X-Git-Tag: 0.0.3^2~1 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=83c0fe680b6212c66b7eecc9efaf12de96bffe16;p=WoTNS.git Remove trusted identities for an own identity if the own identity is removed. --- diff --git a/src/main/java/net/pterodactylus/wotns/freenet/wot/IdentityManager.java b/src/main/java/net/pterodactylus/wotns/freenet/wot/IdentityManager.java index 2405ae6..ea90dac 100644 --- a/src/main/java/net/pterodactylus/wotns/freenet/wot/IdentityManager.java +++ b/src/main/java/net/pterodactylus/wotns/freenet/wot/IdentityManager.java @@ -285,6 +285,7 @@ public class IdentityManager extends AbstractService { for (OwnIdentity oldOwnIdentity : currentOwnIdentities.values()) { if (!newOwnIdentities.containsKey(oldOwnIdentity.getId())) { identityListenerManager.fireOwnIdentityRemoved(oldOwnIdentity); + currentTrustedIdentities.remove(oldOwnIdentity); } }