Skip to content
Browse files

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.
  • Loading branch information...
luccioman committed Jul 16, 2018
1 parent d5f44ea commit bdafb14336ff8b4ddb81c4211c87b5afdc5320af
Showing with 1 addition and 3 deletions.
  1. +1 −3 source/net/yacy/search/
@@ -1471,9 +1471,7 @@ public void switchNetwork(final String networkDefinition) throws FileNotFoundExc

synchronized ( this.index ) {
this.webStructure.close();"SWITCH NETWORK: START UP OF NEW INDEX DATABASE...");

0 comments on commit bdafb14

Please sign in to comment.
You can’t perform that action at this time.