Skip to content

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

Removed redundant synchronization lock on network switch function

lucciomanbdafb14336ff
diff --git a/source/net/yacy/search/Switchboard.java b/source/net/yacy/search/Switchboard.java
index 3a33a5f87..93b4e4b7c 100644
--- a/source/net/yacy/search/Switchboard.java
+++ b/source/net/yacy/search/Switchboard.java
@@ -1471,9 +1471,7 @@ public final class Switchboard extends serverSwitch {
this.crawlStacker.announceClose();
this.crawlStacker.close();
- synchronized ( this.index ) {
- this.index.close();
- }
+ this.index.close();
this.webStructure.close();
this.log.info("SWITCH NETWORK: START UP OF NEW INDEX DATABASE...");