From: David ‘Bombe’ Roden Date: Thu, 21 Oct 2010 11:57:45 +0000 (+0200) Subject: Synchronize status map. X-Git-Tag: 0.1-RC1~122 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=3172a3accc6409cbd0fb11456e0cc441602d0e8e;p=Sone.git Synchronize status map. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index fbbb166..200066f 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -91,7 +91,7 @@ public class Core extends AbstractService { private final Map soneInserters = new HashMap(); /** The Sones’ statuses. */ - private final Map soneStatuses = new HashMap(); + private final Map soneStatuses = Collections.synchronizedMap(new HashMap()); /* various caches follow here. */