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 {
* @return the extended properties.
*/
public Map<String,String> getProperties() {
if (properties == null) {
synchronized (this) {
if (properties == null) {
properties = new ConcurrentHashMap<String, String>();
loadProperties();
}
synchronized (this) {
if (properties == null) {
properties = new ConcurrentHashMap<String, String>();
loadProperties();
}
}
// 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