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 a850c8e0..f481054d 100644 --- a/core/src/main/java/com/google/bitcoin/core/PeerGroup.java +++ b/core/src/main/java/com/google/bitcoin/core/PeerGroup.java @@ -502,7 +502,7 @@ public class PeerGroup { synchronized (PeerGroup.this) { running = false; shutdownPeerDiscovery(); - synchronized (channelFutures.values()) { + synchronized (channelFutures) { for (ChannelFuture future : channelFutures.values()) { future.getChannel().close(); }