X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FIdentityManagerImpl.kt;h=ae5dd1e9bc20a6ffb1d9c7e1496bc0149c7b7b0b;hp=c8c758dceac5ab2c6fa445687573234494229415;hb=884606571eff6e4f80af9485695848bfb5e7fa95;hpb=6ebf42a54cc1ef44bdd762ad06e9b1a84bd7ad25 diff --git a/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.kt b/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.kt index c8c758d..ae5dd1e 100644 --- a/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.kt +++ b/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.kt @@ -77,13 +77,13 @@ class IdentityManagerImpl @Inject constructor( logger.log(Level.FINE, "Reduced (${currentIdentities.size},(${currentIdentities.values.joinToString { it.size.toString() }})) identities to (${onlyTrustedByAll.size},(${onlyTrustedByAll.values.joinToString { it.size.toString() }})).") val identityChangeEventSender = IdentityChangeEventSender(eventBus, oldIdentities) - identityChangeEventSender.detectChanges(currentIdentities) + identityChangeEventSender.detectChanges(onlyTrustedByAll) - oldIdentities = currentIdentities + oldIdentities = onlyTrustedByAll synchronized(currentOwnIdentities) { currentOwnIdentities.clear() - currentOwnIdentities.addAll(currentIdentities.keys) + currentOwnIdentities.addAll(onlyTrustedByAll.keys) } } catch (wote1: WebOfTrustException) { logger.log(Level.WARNING, "WoT has disappeared!", wote1)