From: David ‘Bombe’ Roden Date: Thu, 26 Jun 2014 18:21:14 +0000 (+0200) Subject: Synchronize all access on the current own identities. X-Git-Tag: 0.9-rc1^2~3^2~226 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=d8f787ea2b94de403ef0ab989282643423d7131c;p=Sone.git Synchronize all access on the current own identities. --- diff --git a/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManager.java b/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManager.java index 9f9ab7f..6f33a4a 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManager.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManager.java @@ -150,7 +150,9 @@ public class IdentityManager extends AbstractService { * @return All own identities */ public Set getAllOwnIdentities() { - return new HashSet(currentOwnIdentities.values()); + synchronized (syncObject) { + return new HashSet(currentOwnIdentities.values()); + } } //