From 71179e3dfd4ed8668fd4096d15326613c4a05750 Mon Sep 17 00:00:00 2001 From: ElgarL Date: Mon, 10 Sep 2012 17:46:01 +0100 Subject: Synchronize the world data holder. --- .../org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'EssentialsGroupManager/src/org/anjocaido') diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java index 2a6463fe3..123070759 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java @@ -403,8 +403,10 @@ public class WorldsHolder { if (worldsData.containsKey(worldNameLowered)) { OverloadedWorldHolder data = worldsData.get(worldNameLowered); - data.updateDataSource(); - return data; + synchronized (data) { + data.updateDataSource(); + return data; + } } return null; -- cgit v1.2.3