From bdafb14336ff8b4ddb81c4211c87b5afdc5320af Mon Sep 17 00:00:00 2001 From: luccioman Date: Mon, 16 Jul 2018 09:20:23 +0200 Subject: [PATCH] Removed redundant synchronization lock on network switch function Was useless as done in an already synchronized block, and the lock object was assigned a new value in that same block, and nowhere else a lock is requested on that same object. --- source/net/yacy/search/Switchboard.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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...");