Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fix for http://forum.yacy-websuche.de/viewtopic.php?f=5&t=4652 generate dht data even if dht receive and dht transmission is switched off

orbitera1c989002b58
diff --git a/source/net/yacy/kelondro/blob/HeapModifier.java b/source/net/yacy/kelondro/blob/HeapModifier.java
index 37d7b8017..14afae051 100644
--- a/source/net/yacy/kelondro/blob/HeapModifier.java
+++ b/source/net/yacy/kelondro/blob/HeapModifier.java
@@ -99,6 +99,7 @@ public class HeapModifier extends HeapReader implements BLOB {
*/
@Override
public void delete(byte[] key) throws IOException {
+ if (this.index == null) return;
key = normalizeKey(key);
// pre-check before synchronization
diff --git a/source/net/yacy/search/Switchboard.java b/source/net/yacy/search/Switchboard.java
index f658e512a..9601694c1 100644
--- a/source/net/yacy/search/Switchboard.java
+++ b/source/net/yacy/search/Switchboard.java
@@ -2701,7 +2701,7 @@ public final class Switchboard extends serverSwitch {
condenser,
searchEvent,
sourceName,
- getConfigBool(SwitchboardConstants.DHT_ENABLED, false) && !isRobinsonMode());
+ getConfigBool(SwitchboardConstants.DHT_ENABLED, false));
final RSSFeed feed =
EventChannel.channels(queueEntry.initiator() == null
? EventChannel.PROXY