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 | b4460f8bac00e764b9ad6b9972d22a3da227f0a6 (patch) | |
tree | a4527d1359229df796450db8c387821321373786 /EssentialsGroupManager | |
parent | 9d820c94a6ff82ee4fef33d0b4e4389282d03d7e (diff) | |
download | Essentials-b4460f8bac00e764b9ad6b9972d22a3da227f0a6.tar Essentials-b4460f8bac00e764b9ad6b9972d22a3da227f0a6.tar.gz Essentials-b4460f8bac00e764b9ad6b9972d22a3da227f0a6.tar.lz Essentials-b4460f8bac00e764b9ad6b9972d22a3da227f0a6.tar.xz Essentials-b4460f8bac00e764b9ad6b9972d22a3da227f0a6.zip |
Synchronize the world data holder.
Diffstat (limited to 'EssentialsGroupManager')
-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; |