3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-30 23:02:15 +00:00

Fix incorrect synchronization on map values.

This commit is contained in:
Miron Cuperman 2012-07-18 12:16:29 -07:00
parent 0a9f529f72
commit 00ce3d7523

View File

@ -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();
}