diff options
author | ElgarL <ElgarL@palmergames.com> | 2012-09-10 17:46:01 +0100 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2012-09-10 17:46:01 +0100 |
commit | 71179e3dfd4ed8668fd4096d15326613c4a05750 (patch) | |
tree | 20f230b6d0069b13c78b0658b8da2689351ae682 /EssentialsGroupManager/src/org/anjocaido | |
parent | 96ab1b4533b62464b8325373e677209290bced3e (diff) | |
download | Essentials-71179e3dfd4ed8668fd4096d15326613c4a05750.tar Essentials-71179e3dfd4ed8668fd4096d15326613c4a05750.tar.gz Essentials-71179e3dfd4ed8668fd4096d15326613c4a05750.tar.lz Essentials-71179e3dfd4ed8668fd4096d15326613c4a05750.tar.xz Essentials-71179e3dfd4ed8668fd4096d15326613c4a05750.zip |
Synchronize the world data holder.
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java | 6 |
1 files changed, 4 insertions, 2 deletions
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; |