Remove trusted identities for an own identity if the own identity is removed.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 16 Sep 2011 09:12:18 +0000 (11:12 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 16 Sep 2011 09:12:18 +0000 (11:12 +0200)
src/main/java/net/pterodactylus/wotns/freenet/wot/IdentityManager.java

index 2405ae6..ea90dac 100644 (file)
@@ -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);
                                }
                        }