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

Fixed regression of disco#item showing when proxy not enabled. JM-571

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3767 b35dd754-fafc-0310-a699-88a17e54d16e
parent 47cebc50
...@@ -229,7 +229,10 @@ public class FileTransferProxy extends BasicModule ...@@ -229,7 +229,10 @@ public class FileTransferProxy extends BasicModule
} }
public Iterator<DiscoServerItem> getItems() { public Iterator<DiscoServerItem> getItems() {
ArrayList<DiscoServerItem> items = new ArrayList<DiscoServerItem>(); if(!isEnabled()) {
return null;
}
List<DiscoServerItem> items = new ArrayList<DiscoServerItem>();
items.add(new DiscoServerItem() { items.add(new DiscoServerItem() {
public String getJID() { public String getJID() {
......
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