From 3172a3accc6409cbd0fb11456e0cc441602d0e8e Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 21 Oct 2010 13:57:45 +0200 Subject: [PATCH] Synchronize status map. --- src/main/java/net/pterodactylus/sone/core/Core.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- 2.7.4