Commit eb86d573 authored by Alex Wenckus's avatar Alex Wenckus Committed by alex

Fixed sync issue which could cause multiple Disco#Items entries. JM-626

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3731 b35dd754-fafc-0310-a699-88a17e54d16e
parent 7bd7bc66
...@@ -183,7 +183,7 @@ public class IQDiscoItemsHandler extends IQHandler implements ServerFeaturesProv ...@@ -183,7 +183,7 @@ public class IQDiscoItemsHandler extends IQHandler implements ServerFeaturesProv
element.addAttribute("node", discoItem.getNode()); element.addAttribute("node", discoItem.getNode());
element.addAttribute("name", discoItem.getName()); element.addAttribute("name", discoItem.getName());
// Add the element to the list of items related to the server // Add the element to the list of items related to the server
serverItems.add(element); addComponentItem(discoItem.getJID(), discoItem.getName());
// Add the new item as a valid entity that could receive info and items disco requests // Add the new item as a valid entity that could receive info and items disco requests
String host = new JID(discoItem.getJID()).getDomain(); String host = new JID(discoItem.getJID()).getDomain();
......
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