Commit 260cee3b authored by guus's avatar guus

Fixing logic error in JID class / cache routine (JM-1453).

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10850 b35dd754-fafc-0310-a699-88a17e54d16e
parent 9de18081
......@@ -578,7 +578,7 @@ public class JID implements Comparable<JID>, Externalizable {
public void put(K entry) {
synchronized (entry) {
// add value to the cache
if (cachedValues.put(entry, NULL) != null) {
if (cachedValues.put(entry, NULL) == null) {
// ensure that queue doesn't contain duplicates.
fifoQueue.offer(entry);
}
......
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