From 00ce3d7523d8c75893fc15984f3afbe6dbe2902e Mon Sep 17 00:00:00 2001 From: Miron Cuperman Date: Wed, 18 Jul 2012 12:16:29 -0700 Subject: [PATCH] Fix incorrect synchronization on map values. --- core/src/main/java/com/google/bitcoin/core/PeerGroup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }