Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) Close indexEntities when "found not enough peers for distribution"
hermens37791fd529e3
diff --git a/source/de/anomic/plasma/plasmaWordIndexDistribution.java b/source/de/anomic/plasma/plasmaWordIndexDistribution.javaindex 366df9c63..dc0ca29e7 100644--- a/source/de/anomic/plasma/plasmaWordIndexDistribution.java+++ b/source/de/anomic/plasma/plasmaWordIndexDistribution.java@@ -247,6 +247,9 @@ public final class plasmaWordIndexDistribution {if (hc0 < peerCount) {log.logWarning("found not enough (" + hc0 + ") peers for distribution");+ for (int i = 0; i < indexEntities.length; i++) try {+ indexEntities[i].close();+ } catch (IOException ee) {}return -1; // failed}