Commit 8f10ab8e authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Fixed concurrency trick.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@687 b35dd754-fafc-0310-a699-88a17e54d16e
parent a82671bc
...@@ -131,12 +131,10 @@ public class Group implements Cacheable { ...@@ -131,12 +131,10 @@ public class Group implements Cacheable {
* @return the extended properties. * @return the extended properties.
*/ */
public Map<String,String> getProperties() { public Map<String,String> getProperties() {
if (properties == null) { synchronized (this) {
synchronized (this) { if (properties == null) {
if (properties == null) { properties = new ConcurrentHashMap<String, String>();
properties = new ConcurrentHashMap<String, String>(); loadProperties();
loadProperties();
}
} }
} }
// Return a wrapper that will intercept add and remove commands. // Return a wrapper that will intercept add and remove commands.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment