summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager
diff options
context:
space:
mode:
authorElgarL <ElgarL@palmergames.com>2012-09-10 17:46:01 +0100
committerElgarL <ElgarL@palmergames.com>2012-09-10 17:46:01 +0100
commitb4460f8bac00e764b9ad6b9972d22a3da227f0a6 (patch)
treea4527d1359229df796450db8c387821321373786 /EssentialsGroupManager
parent9d820c94a6ff82ee4fef33d0b4e4389282d03d7e (diff)
downloadEssentials-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.java6
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;