From e64be5dcad7aea46aa8c3072a954f2d108e1fff6 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Wed, 4 Jun 2014 13:59:37 +0200 Subject: [PATCH] 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. --- htroot/ConfigNetwork_p.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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); } }