Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
508e39e2
Commit
508e39e2
authored
Dec 20, 2016
by
akrherz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change sync key as per @guusdk suggestion
parent
ffe14c90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
GroupManager.java
src/java/org/jivesoftware/openfire/group/GroupManager.java
+2
-2
No files found.
src/java/org/jivesoftware/openfire/group/GroupManager.java
View file @
508e39e2
...
@@ -215,7 +215,7 @@ public class GroupManager {
...
@@ -215,7 +215,7 @@ public class GroupManager {
JID
userJid
=
new
JID
(
user
);
JID
userJid
=
new
JID
(
user
);
if
(
XMPPServer
.
getInstance
().
isLocal
(
userJid
))
{
if
(
XMPPServer
.
getInstance
().
isLocal
(
userJid
))
{
String
username
=
userJid
.
getNode
();
String
username
=
userJid
.
getNode
();
synchronized
(
username
.
intern
())
{
synchronized
(
(
getClass
().
getSimpleName
()
+
username
)
.
intern
())
{
groupMetaCache
.
remove
(
username
);
groupMetaCache
.
remove
(
username
);
}
}
}
}
...
@@ -480,7 +480,7 @@ public class GroupManager {
...
@@ -480,7 +480,7 @@ public class GroupManager {
public
Collection
<
Group
>
getSharedGroups
(
String
userName
)
{
public
Collection
<
Group
>
getSharedGroups
(
String
userName
)
{
Collection
<
String
>
groupNames
=
(
Collection
<
String
>)
groupMetaCache
.
get
(
userName
);
Collection
<
String
>
groupNames
=
(
Collection
<
String
>)
groupMetaCache
.
get
(
userName
);
if
(
groupNames
==
null
)
{
if
(
groupNames
==
null
)
{
synchronized
(
userName
.
intern
())
{
synchronized
(
(
getClass
().
getSimpleName
()
+
userName
)
.
intern
())
{
groupNames
=
(
Collection
<
String
>)
groupMetaCache
.
get
(
userName
);
groupNames
=
(
Collection
<
String
>)
groupMetaCache
.
get
(
userName
);
if
(
groupNames
==
null
)
{
if
(
groupNames
==
null
)
{
// assume this is a local user
// assume this is a local user
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment