in case that the network is switched to any other than freeworld, RWIs

are disabled. This is a temporary fix. There must be a better way to
determine if RWIs are to be switched on or of.
pull/1/head
Michael Peter Christen 11 years ago
parent 0c324d735c
commit e64be5dcad

@ -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);
}
}

Loading…
Cancel
Save