From b7eab449908eccd58dacb619d682b479a98a8452 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Tue, 19 Mar 2013 15:40:31 +0100 Subject: [PATCH] Remove a couple of checkNotLocked asserts that didn't get deleted last time. --- core/src/main/java/com/google/bitcoin/core/PeerGroup.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/src/main/java/com/google/bitcoin/core/PeerGroup.java b/core/src/main/java/com/google/bitcoin/core/PeerGroup.java index ecf4973a..9b2690a6 100644 --- a/core/src/main/java/com/google/bitcoin/core/PeerGroup.java +++ b/core/src/main/java/com/google/bitcoin/core/PeerGroup.java @@ -519,7 +519,6 @@ public class PeerGroup extends AbstractIdleService { /** Picks a peer from discovery and connects to it. If connection fails, picks another and tries again. */ protected void connectToAnyPeer() throws PeerDiscoveryException { - checkState(!lock.isLocked()); final State state = state(); if (!(state == State.STARTING || state == State.RUNNING)) return; @@ -691,7 +690,6 @@ public class PeerGroup extends AbstractIdleService { // Internal version. protected ChannelFuture connectTo(SocketAddress address, boolean incrementMaxConnections) { - checkState(!lock.isLocked()); ChannelFuture future = bootstrap.connect(address); // Make sure that the channel group gets access to the channel only if it connects successfully (otherwise // it cannot be closed and trying to do so will cause problems).