diff --git a/htroot/ConfigNetwork_p.java b/htroot/ConfigNetwork_p.java index 42ef47a7d..7cebf0e79 100644 --- a/htroot/ConfigNetwork_p.java +++ b/htroot/ConfigNetwork_p.java @@ -67,10 +67,8 @@ public class ConfigNetwork_p "network settings"); if ( post.containsKey("changeNetwork") ) { - String networkDefinition = - post.get("networkDefinition", "defaults/yacy.network.freeworld.unit"); - final String networkDefinitionURL = - post.get("networkDefinitionURL", ""); + String networkDefinition = post.get("networkDefinition", "defaults/yacy.network.freeworld.unit"); + final String networkDefinitionURL = post.get("networkDefinitionURL", ""); if ( !networkDefinitionURL.equals("")) { networkDefinition = networkDefinitionURL; } @@ -80,6 +78,7 @@ public class ConfigNetwork_p } else { // shut down old network and index, start up new network and index commit = 1; + sb.setConfig(SwitchboardConstants.CORE_SERVICE_RWI, networkDefinition.indexOf("freeworld") >= 0); sb.switchNetwork(networkDefinition); } }